From 5a87acf6b01414b6a5ef3459dc09d7b17fcfecaa Mon Sep 17 00:00:00 2001 From: aloftus23 Date: Wed, 22 Nov 2023 10:06:36 -0500 Subject: [PATCH] Add permissions to allow lambdas to connect to ecs service and sqs --- backend/serverless.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/serverless.yml b/backend/serverless.yml index c8aad3d8d..2923c88b1 100644 --- a/backend/serverless.yml +++ b/backend/serverless.yml @@ -43,6 +43,9 @@ provider: Action: - ecs:RunTask - ecs:ListTasks + - ecs:DescribeTasks + - ecs:DescribeServices + - ecs:UpdateService - iam:PassRole Resource: '*' - Effect: Allow @@ -65,7 +68,9 @@ provider: - Effect: Allow Action: - sqs:ReceiveMessage + - sqs:DeleteMessage - sqs:SendMessage + - sqs:GetQueueAttributes Resource: '*' - Effect: Allow Action: @@ -108,7 +113,6 @@ resources: MaximumMessageSize: 262144 # 256 KB MessageRetentionPeriod: 604800 # 7 days - functions: - ${file(./src/tasks/functions.yml)} - ${file(./src/api/functions.yml)}