Skip to content

Commit 2d7fd39

Browse files
allow pass role to ecs department execution roles (#2556)
1 parent c41dd8d commit 2d7fd39

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
@@ -1253,8 +1253,8 @@ data "aws_iam_policy_document" "department_ecs_passrole" {
12531253
"iam:PassRole"
12541254
]
12551255
resources = [
1256-
aws_iam_role.department_ecs_role.arn, # Defined in 50-aws-iam-roles.tf
1257-
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${local.department_identifier}-ecs-execution-role", # Defined in ecs repo.
1256+
aws_iam_role.department_ecs_role.arn, # Defined in 50-aws-iam-roles.tf
1257+
"arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${local.department_identifier}*-ecs-execution-role", # Defined in ecs repo.
12581258
]
12591259
condition {
12601260
test = "StringEquals"

0 commit comments

Comments
 (0)