Skip to content

Commit

Permalink
[fix] Use index when referring to a dependency with a count
Browse files Browse the repository at this point in the history
  • Loading branch information
jgadling authored May 21, 2020
1 parent 945dc2c commit 9d289b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws-iam-role-poweruser/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,5 @@ resource "aws_iam_role_policy_attachment" "misc" {
count = var.authorize_iam ? 1 : 0

role = aws_iam_role.poweruser.name
policy_arn = aws_iam_policy.misc.arn
policy_arn = aws_iam_policy.misc[count.index].arn
}

0 comments on commit 9d289b2

Please sign in to comment.