Skip to content

Commit 36a4079

Browse files
committed
feat: Support multiple conditions in 'redacted_fields'
1 parent 1d0929a commit 36a4079

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12239,7 +12239,9 @@ resource "aws_wafv2_web_acl_logging_configuration" "this" {
1223912239
resource_arn = aws_wafv2_web_acl.this.arn
1224012240

1224112241
dynamic "redacted_fields" {
12242-
for_each = var.redacted_fields == null ? [] : [var.redacted_fields]
12242+
for_each = var.redacted_fields == null ? [] : var.redacted_fields
12243+
iterator = redacted_fields
12244+
1224312245
content {
1224412246
dynamic "single_header" {
1224512247
for_each = lookup(redacted_fields.value, "single_header", null) == null ? [] : [lookup(redacted_fields.value, "single_header")]

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ variable "log_destination_configs" {
8383
}
8484

8585
variable "redacted_fields" {
86-
type = map(any)
86+
type = list(any)
8787
description = "(Optional) The parts of the request that you want to keep out of the logs. Up to 100 redacted_fields blocks are supported."
8888
default = null
8989
}

0 commit comments

Comments
 (0)