Skip to content

Commit 195c605

Browse files
committed
Add GetFunction and GetPolicy permissions to the build image cleanup role
1 parent 9d96bf6 commit 195c605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/src/pcluster/imagebuilder_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def _expected_inline_policy(account_id: str, partition: str):
140140
{"Action": "ec2:CreateTags", "Resource": f"arn:{partition}:ec2:*::image/*", "Effect": "Allow"},
141141
{"Action": "tag:TagResources", "Resource": "*", "Effect": "Allow"},
142142
{
143-
"Action": ["lambda:DeleteFunction", "lambda:RemovePermission"],
143+
"Action": ["lambda:DeleteFunction", "lambda:RemovePermission", "lambda:GetFunction", "lambda:GetPolicy"],
144144
"Resource": f"arn:{partition}:lambda:*:{account_id}:function:ParallelClusterImage-*",
145145
"Effect": "Allow",
146146
},

0 commit comments

Comments
 (0)