Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17086

Use IAM Role when creating instance

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • ec2-plugin
    • None

    Description

      We use IAM roles to set up our EC2 instances. It would be great to have a field in the cloud configuration to allow us to set up an IAM role to use when creating a new EC2 instance.

      Attachments

        Issue Links

          Activity

            fdrake Fred Drake added a comment -

            Being able to use instance roles would be a big plus for me as well.

            fdrake Fred Drake added a comment - Being able to use instance roles would be a big plus for me as well.
            fdrake Fred Drake added a comment -

            Hmm. I just noticed this has been marked as resolved, but the EC2 plugin I just installed into a test jenkins doesn't appear to include this. Does this remain unreleased?

            fdrake Fred Drake added a comment - Hmm. I just noticed this has been marked as resolved, but the EC2 plugin I just installed into a test jenkins doesn't appear to include this. Does this remain unreleased?
            ww_mgr Maarten Groot added a comment -

            It's already released. It only starts slaves with an IAM role, it doesn't use its own IAM role to query for regions, AMIs or starting slaves.

            ww_mgr Maarten Groot added a comment - It's already released. It only starts slaves with an IAM role, it doesn't use its own IAM role to query for regions, AMIs or starting slaves.
            gposton Glenn Poston added a comment -

            How do I configure the IAM role that is used when launching an instance? I don't see this as an option in the ec2 plugin configuration in the Jenkins configuration.

            gposton Glenn Poston added a comment - How do I configure the IAM role that is used when launching an instance? I don't see this as an option in the ec2 plugin configuration in the Jenkins configuration.
            ww_mgr Maarten Groot added a comment -

            It's an advanced setting (push "Advanced..." button below "Init script"). Enter the "IAM Instance Profile" as ARN e.g. arn:aws:iam::000000000000:instance-profile/SampleName

            ww_mgr Maarten Groot added a comment - It's an advanced setting (push "Advanced..." button below "Init script"). Enter the "IAM Instance Profile" as ARN e.g. arn:aws:iam::000000000000:instance-profile/SampleName

            People

              francisu Francis Upton
              bradx3 bradx3
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: