We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa17c03 + d46dfe4 commit a623d93Copy full SHA for a623d93
waf.tf
@@ -1,5 +1,5 @@
1
resource "aws_wafv2_web_acl" "waf_cloudfront" {
2
- count = var.waf_cloudfront_enable ? 1 : 0
+ count = var.waf_cloudfront_enable && var.cloudfront_web_acl_id == null ? 1 : 0
3
name = "waf-cloudfront-${var.name}"
4
description = "WAF managed rules for Cloudfront"
5
scope = "CLOUDFRONT"
0 commit comments