Skip to content

Commit 30f3bc7

Browse files
add passrole action for housing
1 parent 075169d commit 30f3bc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,9 @@ data "aws_iam_policy_document" "department_ecs_passrole" {
13171317
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/datahub-task-execution-role", # Defined in dap-datahub repo
13181318
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/DataHubGlueReadRole", # Defined in dap-datahub repo
13191319
"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
1320+
] : [],
1321+
local.department_identifier == "housing" ? [
1322+
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${var.identifier_prefix}-housing-register-task-role"
13201323
] : []
13211324
)
13221325
condition {

0 commit comments

Comments
 (0)