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

Assuming Role does not work in AWS-China

    Details

    • Similar Issues:

      Description

      ARN format is hard coded for assuming the role: 
       
       String roleARN = String.format("arn:aws:iam::%s:role/%s", accountId, this.step.getRole()); 
       (Line 205 of https://github.com/jenkinsci/pipeline-aws-plugin/blob/master/src/main/java/de/taimos/pipeline/aws/WithAWSStep.java
       
      The above definition works fine for other regions but China since China region is using the "arn:aws-cn:iam" format.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Anuj Patel
          Path:
          src/main/java/de/taimos/pipeline/aws/WithAWSStep.java
          http://jenkins-ci.org/commit/pipeline-aws-plugin/6918461deaf575e06c7385d1b7e08dcf1c1fb82f
          Log:
          JENKINS-45964 : Assuming Role does not work in AWS-China

          • Added selecting resource partition based on currently active region in step.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Anuj Patel Path: src/main/java/de/taimos/pipeline/aws/WithAWSStep.java http://jenkins-ci.org/commit/pipeline-aws-plugin/6918461deaf575e06c7385d1b7e08dcf1c1fb82f Log: JENKINS-45964 : Assuming Role does not work in AWS-China Added selecting resource partition based on currently active region in step.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Anuj Patel
          Path:
          src/main/java/de/taimos/pipeline/aws/WithAWSStep.java
          http://jenkins-ci.org/commit/pipeline-aws-plugin/5984b883d8abaa673ec7e01bd98b358ea3983d22
          Log:
          JENKINS-45964 : Assuming Role does not work in AWS-China

          • Moved partition names to constants.
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Anuj Patel Path: src/main/java/de/taimos/pipeline/aws/WithAWSStep.java http://jenkins-ci.org/commit/pipeline-aws-plugin/5984b883d8abaa673ec7e01bd98b358ea3983d22 Log: JENKINS-45964 : Assuming Role does not work in AWS-China Moved partition names to constants.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Anuj Patel
          Path:
          src/main/java/de/taimos/pipeline/aws/WithAWSStep.java
          http://jenkins-ci.org/commit/pipeline-aws-plugin/54896f8ad108f4f0d3271ff2e540d2c8739ff8ec
          Log:
          JENKINS-45964 : Assuming Role does not work in AWS-China

          Whitespace cleanup

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Anuj Patel Path: src/main/java/de/taimos/pipeline/aws/WithAWSStep.java http://jenkins-ci.org/commit/pipeline-aws-plugin/54896f8ad108f4f0d3271ff2e540d2c8739ff8ec Log: JENKINS-45964 : Assuming Role does not work in AWS-China Whitespace cleanup
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Anuj Patel
          Path:
          src/main/java/de/taimos/pipeline/aws/WithAWSStep.java
          http://jenkins-ci.org/commit/pipeline-aws-plugin/53e28903270e054bcf04de8b34df2b913dc2f549
          Log:
          JENKINS-45964 : Assuming Role does not work in AWS-China

          • Allow user to pass in role ARN
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Anuj Patel Path: src/main/java/de/taimos/pipeline/aws/WithAWSStep.java http://jenkins-ci.org/commit/pipeline-aws-plugin/53e28903270e054bcf04de8b34df2b913dc2f549 Log: JENKINS-45964 : Assuming Role does not work in AWS-China Allow user to pass in role ARN
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Anuj Patel
          Path:
          src/main/java/de/taimos/pipeline/aws/WithAWSStep.java
          http://jenkins-ci.org/commit/pipeline-aws-plugin/a376eb00670bd1fe97eec4eb343f545705b1079d
          Log:
          JENKINS-45964 : Assuming Role does not work in AWS-China

          • Imported missed package while committing online (due to formatting issues with IntelliJ)
          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Anuj Patel Path: src/main/java/de/taimos/pipeline/aws/WithAWSStep.java http://jenkins-ci.org/commit/pipeline-aws-plugin/a376eb00670bd1fe97eec4eb343f545705b1079d Log: JENKINS-45964 : Assuming Role does not work in AWS-China Imported missed package while committing online (due to formatting issues with IntelliJ)

            People

            • Assignee:
              hoegertn Thorsten Hoeger
              Reporter:
              cyril Cyril Burd
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: