From 92873398bec448d94a32a5fba5d296172435a7b8 Mon Sep 17 00:00:00 2001 From: Xuanqi He Date: Wed, 8 Jan 2025 02:03:53 -0500 Subject: [PATCH] Remove uncessary policies: ecr:DeleteRepositoryPolicy, ecr:GetRepositoryPolicy, ecr:SetRepositoryPolicy --- infrastructure/parallelcluster-ui.yaml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/infrastructure/parallelcluster-ui.yaml b/infrastructure/parallelcluster-ui.yaml index 11b7b99a..9d1a56ba 100644 --- a/infrastructure/parallelcluster-ui.yaml +++ b/infrastructure/parallelcluster-ui.yaml @@ -575,17 +575,6 @@ Resources: Condition: StringLike: aws:SourceArn: !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:* - - Sid: ReadWriteEcrPolicy - Effect: Allow - Principal: - Service: !Sub lambda.${AWS::URLSuffix} - Action: - - ecr:DeleteRepositoryPolicy - - ecr:GetRepositoryPolicy - - ecr:SetRepositoryPolicy - Condition: - StringLike: - aws:SourceArn: !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:* ImageBuilderInstanceRole: Type: AWS::IAM::Role