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

Use IAM Role when creating instance

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ec2-plugin
    • Labels:
      None
    • Similar Issues:

      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

            Hide
            fdrake Fred Drake added a comment -

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

            Show
            fdrake Fred Drake added a comment - Being able to use instance roles would be a big plus for me as well.
            Hide
            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?

            Show
            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?
            Hide
            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.

            Show
            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.
            Hide
            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.

            Show
            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.
            Hide
            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

            Show
            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

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

                Dates

                • Created:
                  Updated:
                  Resolved: