From e3ac2cd14c7476df79de7616caf813b2457819d5 Mon Sep 17 00:00:00 2001 From: "adam.carruthers1" Date: Sun, 26 Nov 2023 16:46:03 +0000 Subject: [PATCH] Fix condition the wrong way around --- modules/opennext-cloudfront/waf.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/opennext-cloudfront/waf.tf b/modules/opennext-cloudfront/waf.tf index 5001b8b..d859011 100644 --- a/modules/opennext-cloudfront/waf.tf +++ b/modules/opennext-cloudfront/waf.tf @@ -122,7 +122,7 @@ resource "aws_wafv2_web_acl" "cloudfront_waf" { } resource "aws_wafv2_web_acl_logging_configuration" "waf_logging" { - count = var.waf_logging_configuration == null || var.custom_waf != null ? 0 : 1 + count = var.waf_logging_configuration == null || var.custom_waf == null ? 0 : 1 resource_arn = aws_wafv2_web_acl.cloudfront_waf[0].arn log_destination_configs = var.waf_logging_configuration.log_destination_configs