Closed jiwuh closed 4 years ago
Hi @jiwuh, thank you for creating this issue! While only one single_header
attribute can be declared within a redacted_fields
block, it's possible to create repeated redacted_fields
blocks. With the example you've provided, you can do something like:
resource "aws_wafv2_web_acl_logging_configuration" "example" {
log_destination_configs = ["${aws_kinesis_firehose_delivery_stream.example.arn}"]
resource_arn = "${aws_wafv2_web_acl.example.arn}"
redacted_fields {
single_header {
name = "user-agent"
}
}
redacted_fields {
single_header {
name = "authorization"
}
}
}
Looking at the snapshot of the console, unfortunately it does look a bit different from the WAFv2 API's structure but hopefully this example helps! If any further questions arise please let me know 😃
That worked @anGie44. Thanks a bunch!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform version: 0.13.0
AWS Provider Version: 2.70.0
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Both headers are added on the AWS console as shown below:
Actual Behavior
An error is thrown statin that the attribute supports 1 item maximum.
Steps to Reproduce
terraform apply