Skip to content

Commit a2cf778

Browse files
committed
add the execution_role_arn to the CD user PassRole
1 parent ea70f51 commit a2cf778

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.tf

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ resource "aws_iam_user_policy" "cd" {
8383
Action = [
8484
"iam:PassRole",
8585
]
86-
Resource = module.ecsasg.ecsServiceRole_arn
86+
Resource = [
87+
module.ecsasg.ecsServiceRole_arn,
88+
var.execution_role_arn,
89+
]
8790
},
8891
]
8992
})

0 commit comments

Comments
 (0)