Skip to content

Commit 1fc1a99

Browse files
authored
Restrict extra permissions for ECR private repo as Lambda team has confirmed they are unnecessary (#380)
Remove the extra ECR policy actions ecr:DeleteRepositoryPolicy, ecr:GetRepositoryPolicy, and ecr:SetRepositoryPolicy from our CloudFormation template.
1 parent ac5d9c4 commit 1fc1a99

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

infrastructure/parallelcluster-ui.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -575,17 +575,6 @@ Resources:
575575
Condition:
576576
StringLike:
577577
aws:SourceArn: !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*
578-
- Sid: ReadWriteEcrPolicy
579-
Effect: Allow
580-
Principal:
581-
Service: !Sub lambda.${AWS::URLSuffix}
582-
Action:
583-
- ecr:DeleteRepositoryPolicy
584-
- ecr:GetRepositoryPolicy
585-
- ecr:SetRepositoryPolicy
586-
Condition:
587-
StringLike:
588-
aws:SourceArn: !Sub arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*
589578

590579
ImageBuilderInstanceRole:
591580
Type: AWS::IAM::Role

0 commit comments

Comments
 (0)