We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c41dd8d commit 2d7fd39Copy full SHA for 2d7fd39
terraform/modules/department/50-aws-iam-policies.tf
@@ -1253,8 +1253,8 @@ data "aws_iam_policy_document" "department_ecs_passrole" {
1253
"iam:PassRole"
1254
]
1255
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.
+ aws_iam_role.department_ecs_role.arn, # Defined in 50-aws-iam-roles.tf
+ "arn:aws:iam::${data.aws_caller_identity.current.account_id}:role/${local.department_identifier}*-ecs-execution-role", # Defined in ecs repo.
1258
1259
condition {
1260
test = "StringEquals"
0 commit comments