We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 945dc2c commit 9d289b2Copy full SHA for 9d289b2
aws-iam-role-poweruser/main.tf
@@ -166,5 +166,5 @@ resource "aws_iam_role_policy_attachment" "misc" {
166
count = var.authorize_iam ? 1 : 0
167
168
role = aws_iam_role.poweruser.name
169
- policy_arn = aws_iam_policy.misc.arn
+ policy_arn = aws_iam_policy.misc[count.index].arn
170
}
0 commit comments