From 0270973ede38af6a0d281c696423db10bccee8b6 Mon Sep 17 00:00:00 2001 From: shri Date: Fri, 9 Aug 2024 14:17:52 +0200 Subject: [PATCH] Fix github action role --- deploy/aws/tf/modules/iam/main.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deploy/aws/tf/modules/iam/main.tf b/deploy/aws/tf/modules/iam/main.tf index 58176785..92d36ee6 100644 --- a/deploy/aws/tf/modules/iam/main.tf +++ b/deploy/aws/tf/modules/iam/main.tf @@ -145,7 +145,10 @@ resource "aws_iam_policy" "github_actions_policy" { Action = [ "iam:PassRole" ], - Resource = "${aws_iam_role.ecs_task_execution_role.arn}" + Resource = [ + "${aws_iam_role.ecs_task_execution_role.arn}", + "${aws_iam_role.ecs_task_role.arn}" + ] } ] })