Skip to content

Commit 226ff44

Browse files
committed
adjust logic variable on waf
1 parent ae34ecc commit 226ff44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

waf.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resource "aws_wafv2_web_acl" "waf_cloudfront" {
2-
count = var.waf_cloudfront_enable ? 1 : 0
2+
count = var.waf_cloudfront_enable && var.cloudfront_web_acl_id == null ? 1 : 0
33
name = "waf-cloudfront-${var.name}"
44
description = "WAF managed rules for Cloudfront"
55
scope = "CLOUDFRONT"

0 commit comments

Comments
 (0)