Skip to content

Commit 3fb28b3

Browse files
authored
fix: Ensure that var.create is tied to all resources correctly (#2308)
1 parent 000dd2c commit 3fb28b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/karpenter/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ data "aws_iam_policy_document" "irsa" {
152152
}
153153

154154
resource "aws_iam_policy" "irsa" {
155-
count = var.create_irsa ? 1 : 0
155+
count = local.create_irsa ? 1 : 0
156156

157157
name_prefix = "${local.irsa_name}-"
158158
path = var.irsa_path

0 commit comments

Comments
 (0)