Skip to content

Commit a6e800d

Browse files
Add DynamoDB permissions to Build and Run role
1 parent b90577a commit a6e800d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

iam.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ Resources:
6363
- 'cloudwatch:PutMetricData'
6464
Resource:
6565
- '*'
66-
66+
# Build and Run lambdas need read and delete DynamoDB records to check container health status
67+
- Effect: Allow
68+
Action:
69+
- 'dynamodb:GetItem'
70+
- 'dynamodb:Query'
71+
- 'dynamodb:DeleteItem'
72+
Resource:
73+
- !Sub "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*_unhealthy_containers"
74+
6775
# Permissions for the synchronous Lambda that invokes the long-running Lambda
6876
# and then relays web messages to it
6977
SessionManagerMessageRelayLambdaRole:

0 commit comments

Comments
 (0)