Skip to content

Commit

Permalink
Fix condition was wrong way round
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-carruthers authored and Tomdango committed Nov 30, 2023
1 parent e3ac2cd commit 2570005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/opennext-cloudfront/waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2570005

Please sign in to comment.