-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: pipeline-aws-plugin
-
Environment:Jenkins 2.60, pipeline-aws-plugin 1.12, aws-cn
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.