Skip to content

Commit 2dea5d2

Browse files
Merge pull request #358 from code-dot-org/sanchit/add-dynamodb-permissions
Add DynamoDB permissions to Build and Run role
2 parents cf24a44 + a6e800d commit 2dea5d2

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)