Skip to content

Commit

Permalink
Add permissions to allow lambdas to connect to ecs service and sqs
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Nov 22, 2023
1 parent f8e0c19 commit 5a87acf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ provider:
Action:
- ecs:RunTask
- ecs:ListTasks
- ecs:DescribeTasks
- ecs:DescribeServices
- ecs:UpdateService
- iam:PassRole
Resource: '*'
- Effect: Allow
Expand All @@ -65,7 +68,9 @@ provider:
- Effect: Allow
Action:
- sqs:ReceiveMessage
- sqs:DeleteMessage
- sqs:SendMessage
- sqs:GetQueueAttributes
Resource: '*'
- Effect: Allow
Action:
Expand Down Expand Up @@ -108,7 +113,6 @@ resources:
MaximumMessageSize: 262144 # 256 KB
MessageRetentionPeriod: 604800 # 7 days


functions:
- ${file(./src/tasks/functions.yml)}
- ${file(./src/api/functions.yml)}
Expand Down

0 comments on commit 5a87acf

Please sign in to comment.