• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • ec2-plugin
    • None

      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.

          [JENKINS-17086] Use IAM Role when creating instance

          Code changed in jenkins
          User: ww-mgr
          Path:
          src/main/java/hudson/plugins/ec2/SlaveTemplate.java
          http://jenkins-ci.org/commit/ec2-plugin/7d8a169e64c7d7c744518ba1297774e2903b7804
          Log:
          JENKINS-17086 Undo some whitespace changes

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ww-mgr Path: src/main/java/hudson/plugins/ec2/SlaveTemplate.java http://jenkins-ci.org/commit/ec2-plugin/7d8a169e64c7d7c744518ba1297774e2903b7804 Log: JENKINS-17086 Undo some whitespace changes

          Code changed in jenkins
          User: ww-mgr
          Path:
          src/main/java/hudson/plugins/ec2/SlaveTemplate.java
          src/main/resources/hudson/plugins/ec2/SlaveTemplate/config.jelly
          src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-iamInstanceProfile.html
          src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-iamRole.html
          src/test/java/hudson/plugins/ec2/SlaveTemplateTest.java
          http://jenkins-ci.org/commit/ec2-plugin/b5f2eb7beec88bb7d008ffeb0b1768404aba3b8f
          Log:
          JENKINS-17086 Add iamInstanceProfile option to slave configuration

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ww-mgr Path: src/main/java/hudson/plugins/ec2/SlaveTemplate.java src/main/resources/hudson/plugins/ec2/SlaveTemplate/config.jelly src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-iamInstanceProfile.html src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-iamRole.html src/test/java/hudson/plugins/ec2/SlaveTemplateTest.java http://jenkins-ci.org/commit/ec2-plugin/b5f2eb7beec88bb7d008ffeb0b1768404aba3b8f Log: JENKINS-17086 Add iamInstanceProfile option to slave configuration

          Code changed in jenkins
          User: Francis Upton
          Path:
          src/main/java/hudson/plugins/ec2/SlaveTemplate.java
          src/main/resources/hudson/plugins/ec2/SlaveTemplate/config.jelly
          src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-iamInstanceProfile.html
          src/test/java/hudson/plugins/ec2/SlaveTemplateTest.java
          src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java
          http://jenkins-ci.org/commit/ec2-plugin/4102f1cf7898dae96f3785d3a196276e5627ffae
          Log:
          Merge pull request #52 from ww-mgr/ec2-iamrole

          JENKINS-17086 Add iamRole option to slave configuration

          Compare: https://github.com/jenkinsci/ec2-plugin/compare/3ee74a45270e...4102f1cf7898

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Francis Upton Path: src/main/java/hudson/plugins/ec2/SlaveTemplate.java src/main/resources/hudson/plugins/ec2/SlaveTemplate/config.jelly src/main/resources/hudson/plugins/ec2/SlaveTemplate/help-iamInstanceProfile.html src/test/java/hudson/plugins/ec2/SlaveTemplateTest.java src/test/java/hudson/plugins/ec2/TemplateLabelsTest.java http://jenkins-ci.org/commit/ec2-plugin/4102f1cf7898dae96f3785d3a196276e5627ffae Log: Merge pull request #52 from ww-mgr/ec2-iamrole JENKINS-17086 Add iamRole option to slave configuration Compare: https://github.com/jenkinsci/ec2-plugin/compare/3ee74a45270e...4102f1cf7898

          John Dyer added a comment -

          Any idea when this will be released?

          John Dyer added a comment - Any idea when this will be released?

          Francis Upton added a comment -

          Keep bugging me John, I have a little work to do on the multi-cloud support and I'm jammed, I will try to get to it this week and then do a release. Sorry it's so late.

          Francis Upton added a comment - Keep bugging me John, I have a little work to do on the multi-cloud support and I'm jammed, I will try to get to it this week and then do a release. Sorry it's so late.

          Fred Drake added a comment -

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

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

          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?

          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?

          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.

          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.

          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.

          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.

          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

          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

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

              Created:
              Updated:
              Resolved: