Skip to content

Commit 9d289b2

Browse files
authored
[fix] Use index when referring to a dependency with a count
1 parent 945dc2c commit 9d289b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-iam-role-poweruser/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,5 @@ resource "aws_iam_role_policy_attachment" "misc" {
166166
count = var.authorize_iam ? 1 : 0
167167

168168
role = aws_iam_role.poweruser.name
169-
policy_arn = aws_iam_policy.misc.arn
169+
policy_arn = aws_iam_policy.misc[count.index].arn
170170
}

0 commit comments

Comments
 (0)