Skip to content

Commit

Permalink
:fix(IAM): update condition for aws_iam_policy_attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-balaz committed Sep 6, 2022
1 parent b741823 commit 8af94e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ resource "aws_iam_role" "this" {
}

resource "aws_iam_role_policy_attachment" "this" {
count = local.irsa_role_create ? 1 : 0
count = local.irsa_role_create && var.irsa_policy_enabled ? 1 : 0
role = aws_iam_role.this[0].name
policy_arn = aws_iam_policy.this[0].arn
}
Expand Down

0 comments on commit 8af94e9

Please sign in to comment.