Skip to content

Commit 88fb7d2

Browse files
authored
update the ecs execution role in passrole policy (#2143)
1 parent b01895f commit 88fb7d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,8 @@ data "aws_iam_policy_document" "department_ecs_passrole" {
933933
"iam:PassRole"
934934
]
935935
resources = [
936-
aws_iam_role.department_ecs_role.arn, # Defined in 50-aws-iam-roles.tf
937-
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${replace(local.department_identifier, "-", "_")}-ecs-execution-role", # Defined in ecs repo.
936+
aws_iam_role.department_ecs_role.arn, # Defined in 50-aws-iam-roles.tf
937+
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${local.department_identifier}-ecs-execution-role", # Defined in ecs repo.
938938
]
939939
condition {
940940
test = "StringEquals"

0 commit comments

Comments
 (0)