Skip to content

Commit ebeae8c

Browse files
author
Alexander Melnyk
committed
chore(layer): remove unsused GetFunction permission for the canary
1 parent ee825a8 commit ebeae8c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

layer/layer/canary_stack.py

-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ def __init__(
3737
ManagedPolicy.from_aws_managed_policy_name("service-role/AWSLambdaBasicExecutionRole")
3838
)
3939

40-
execution_role.add_to_policy(
41-
PolicyStatement(effect=Effect.ALLOW, actions=["lambda:GetFunction"], resources=["*"])
42-
)
43-
4440
canary_lambda = Function(
4541
self,
4642
"CanaryLambdaFunction",

0 commit comments

Comments
 (0)