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

            bradx3 bradx3 created issue -
            dwalend David Walend added a comment -

            I was about to put in a request for this feature, too. As well as having the Jenkins master use its own IAM role instead of being a user.

            dwalend David Walend added a comment - I was about to put in a request for this feature, too. As well as having the Jenkins master use its own IAM role instead of being a user.
            johntdyer John Dyer added a comment -

            Great idea, I would totally love this. However this project unfortunately doesn't get much attention as of late, so I am not going to hold me breath for this feature . Maybe its time I learned some Java and did it myself

            johntdyer John Dyer added a comment - Great idea, I would totally love this. However this project unfortunately doesn't get much attention as of late, so I am not going to hold me breath for this feature . Maybe its time I learned some Java and did it myself
            johntdyer John Dyer made changes -
            Field Original Value New Value
            Priority Minor [ 4 ] Major [ 3 ]

            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_issue_link 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_issue_link 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_issue_link 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
            francisu Francis Upton made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            johntdyer John Dyer added a comment -

            Any idea when this will be released?

            johntdyer John Dyer added a comment - Any idea when this will be released?
            francisu 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.

            francisu 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.
            johntdyer John Dyer made changes -
            Link This issue is related to JENKINS-20290 [ JENKINS-20290 ]
            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
            francisu Francis Upton made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 147917 ] JNJira + In-Review [ 206477 ]
            geoff Geoff Dunn made changes -
            Link This issue relates to JENKINS-66216 [ JENKINS-66216 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: