From 73a092fb87ed51faf3832c19b24950a7c6a58907 Mon Sep 17 00:00:00 2001 From: aloftus23 Date: Tue, 13 Aug 2024 11:35:00 -0400 Subject: [PATCH] Add permission to EC2 to describe running Fargates --- infrastructure/database.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/infrastructure/database.tf b/infrastructure/database.tf index aae38b31..c0a1b8ac 100644 --- a/infrastructure/database.tf +++ b/infrastructure/database.tf @@ -167,6 +167,16 @@ resource "aws_iam_role_policy" "db_accessor_s3_policy" { "lambda:InvokeFunction" ], "Resource": ["*"] + }, + { + "Effect": "Allow", + "Action": [ + "ecs:ListTasks", + "ecs:DescribeTasks", + "ecs:ListClusters", + "ecs:DescribeClusters" + ], + "Resource": "*" } ] }