Skip to content

Commit 785d535

Browse files
committed
DL-165 allow deparmental user to pass metadata role to ecs
1 parent ae10bfe commit 785d535

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

terraform/modules/department/50-aws-iam-policies.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,8 +1314,9 @@ data "aws_iam_policy_document" "department_ecs_passrole" {
13141314
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${local.department_identifier}*-ecs-execution-role", # Defined in ecs repo.
13151315
],
13161316
local.department_identifier == "data-and-insight" ? [
1317-
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/datahub-task-execution-role", # Defined in dap-datahub repo
1318-
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/DataHubGlueReadRole" # Defined in dap-datahub repo
1317+
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/datahub-task-execution-role", # Defined in dap-datahub repo
1318+
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/DataHubGlueReadRole", # Defined in dap-datahub repo
1319+
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.identifier_prefix}-cross-department-glue-metadata-role" # Defined in terraform/core/49-aws-ecs-iam.tf
13191320
] : []
13201321
)
13211322
condition {

0 commit comments

Comments
 (0)