From deeeffe6f2777bec14076dfe09b02ae48b9f6b9f Mon Sep 17 00:00:00 2001 From: Tian-2017 Date: Thu, 21 Nov 2024 11:59:39 +0000 Subject: [PATCH] allow Airflow perform on ecs parking and housing execution role --- terraform/modules/department/50-aws-iam-policies.tf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/terraform/modules/department/50-aws-iam-policies.tf b/terraform/modules/department/50-aws-iam-policies.tf index 437781e16..1711a8c8c 100644 --- a/terraform/modules/department/50-aws-iam-policies.tf +++ b/terraform/modules/department/50-aws-iam-policies.tf @@ -909,7 +909,9 @@ data "aws_iam_policy_document" "airflow_base_policy" { ] resources = [ "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/dap-ecs-execution-role", - "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/dap-ecs-task-role" + "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/dap-ecs-task-role", + "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/parking-ecs-execution-role", + "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/housing-ecs-execution-role" ] condition { test = "StringEquals"