Skip to content

Commit

Permalink
allow customizing the logging configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joekhoobyar committed Sep 5, 2020
1 parent 586b218 commit 52b53b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/waf-regional/main.tf
Expand Up @@ -136,7 +136,7 @@ resource "aws_wafregional_web_acl" "wafregional_acl" {

# Logging configuration when there are no redacted fields.
dynamic logging_configuration {
for_each = var.enable_logging && length(var.log_redacted_fields == 0) ? [true] : []
for_each = var.enable_logging && length(var.log_redacted_fields) == 0 ? [true] : []

content {
log_destination = var.log_destination_arn
Expand All @@ -145,7 +145,7 @@ resource "aws_wafregional_web_acl" "wafregional_acl" {

# Logging configuration when there are redacted fields.
dynamic logging_configuration {
for_each = var.enable_logging && length(var.log_redacted_fields > 0) ? [true] : []
for_each = var.enable_logging && length(var.log_redacted_fields) > 0 ? [true] : []

content {
log_destination = var.log_destination_arn
Expand Down

0 comments on commit 52b53b5

Please sign in to comment.