File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/aws-cdk/lib/api/bootstrap Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -276,6 +276,19 @@ Resources:
276276 Condition :
277277 StringLike :
278278 " aws:sourceArn " : { "Fn::Sub": "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*" }
279+ # Necessary for EMR Serverless container images
280+ # https://docs.aws.amazon.com/emr/latest/EMR-Serverless-UserGuide/application-custom-image.html#access-repo
281+ - Sid : EmrServerlessImageRetrievalPolicy
282+ Effect : Allow
283+ Principal :
284+ Service : emr-serverless.amazonaws.com
285+ Action :
286+ - ecr:BatchGetImage
287+ - ecr:GetDownloadUrlForLayer
288+ - ecr:DescribeImages
289+ Condition :
290+ StringLike :
291+ " aws:sourceArn " : { "Fn::Sub": "arn:${AWS::Partition}:emr-serverless:${AWS::Region}:${AWS::AccountId}:/applications/*" }
279292 FilePublishingRole :
280293 Type : AWS::IAM::Role
281294 Properties :
You can’t perform that action at this time.
0 commit comments