Skip to content

Commit 2813ef0

Browse files
committed
add iam:CreateServiceLinkedRole permission
1 parent cf0daa3 commit 2813ef0

File tree

59 files changed

+26103
-27704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+26103
-27704
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.js.snapshot/EmrCreateClusterTestDefaultTestDeployAssert697DC891.assets.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.js.snapshot/aws-cdk-emr-add-step-runtime-role.assets.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.js.snapshot/aws-cdk-emr-add-step-runtime-role.template.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,31 @@
654654
}
655655
]
656656
},
657+
{
658+
"Action": "iam:CreateServiceLinkedRole",
659+
"Condition": {
660+
"StringEquals": {
661+
"iam:AWSServiceName": [
662+
"elasticmapreduce.amazonaws.com",
663+
"elasticmapreduce.amazonaws.com.cn"
664+
]
665+
}
666+
},
667+
"Effect": "Allow",
668+
"Resource": {
669+
"Fn::Join": [
670+
"",
671+
[
672+
"arn:",
673+
{
674+
"Ref": "AWS::Partition"
675+
},
676+
":iam::*:role/aws-service-role/elasticmapreduce.amazonaws.com*/AWSServiceRoleForEMRCleanup*"
677+
]
678+
]
679+
},
680+
"Sid": "ElasticMapReduceServiceLinkedRole"
681+
},
657682
{
658683
"Action": [
659684
"elasticmapreduce:AddJobFlowSteps",

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.js.snapshot/cdk.out

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-stepfunctions-tasks/test/emr/integ.emr-create-cluster-add-step-runtime-role.js.snapshot/integ.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)