Skip to content

Commit b3ad6f9

Browse files
authored
feat(stepfunctions-tasks): EmrCreateClusterOptions support ebsRootVolumeIops, ebsRootVolumeThroughput and managedScalingPolicy (#34677)
### Issue # (if applicable) Closes #33431 ### Reason for this change Missing param in EmrCreateClusterOptions ### Description of changes - EmrCreateClusterOptions support - ebsRootVolumeIops - ebsRootVolumeThroughput - managedScalingPolicy - Move validations to private `validateProps` function ManagedScalingPolicy.ScalingStrategy is supported by awscli/API, but not yet supported by Step Function. Therefore not included in this PR ![Screenshot 2025-06-10 222653](https://github.com/user-attachments/assets/0f2b8f9a-1806-4d69-8250-b14bd7c4d212) ### Describe any new or updated permissions being added Add `iam:CreateServiceLinkedRole` permission for only EMR to create `AWSServiceRoleForEMRCleanup` as instructed by https://docs.aws.amazon.com/emr/latest/ManagementGuide/using-service-linked-roles-cleanup.html#create-service-linked-role ### Description of how you validated changes Unit + Integ ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent f4b26af commit b3ad6f9

File tree

65 files changed

+60312
-27706
lines changed

Some content is hidden

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

65 files changed

+60312
-27706
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: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,35 @@
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::",
677+
{
678+
"Ref": "AWS::AccountId"
679+
},
680+
":role/aws-service-role/elasticmapreduce.amazonaws.com*/AWSServiceRoleForEMRCleanup*"
681+
]
682+
]
683+
},
684+
"Sid": "ElasticMapReduceServiceLinkedRole"
685+
},
657686
{
658687
"Action": [
659688
"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)