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

Assuming Role does not work in AWS-China

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: