Skip to content

Commit

Permalink
allow passrole on task role too (#1992)
Browse files Browse the repository at this point in the history
* allow passrole on task role too

* match with dataplatform-stg-ecs-parking

* remove the environment variable since the identifier_prefix includes
  • Loading branch information
Tian-2017 authored Nov 21, 2024
1 parent f452f7d commit 48cab13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion terraform/modules/department/50-aws-iam-policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,9 @@ data "aws_iam_policy_document" "airflow_base_policy" {
"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/parking-ecs-execution-role",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/housing-ecs-execution-role"
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.identifier_prefix}-ecs-parking",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/housing-ecs-execution-role",
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.identifier_prefix}-ecs-housing",
]
condition {
test = "StringEquals"
Expand Down

0 comments on commit 48cab13

Please sign in to comment.