hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.82k stars 9.16k forks source link

[Enhancement]: Add support for AssociationConfig in aws_wafv2_web_acl #31667

Closed TsvetanMilanov closed 1 year ago

TsvetanMilanov commented 1 year ago

Description

Amazon introduced a configuration to increase the body size sent from protected resources (currently only Cloudfront distributions) to WAF for inspection. The new configuration property is AssociationConfig

Affected Resource(s) and/or Data Source(s)

aws_wafv2_web_acl

Potential Terraform Configuration

resource "aws_wafv2_web_acl" "example" {
  name        = "example"
  description = "example"
  scope       = "CLOUDFRONT"

  association_config {
    request_body {
        cloudfront {
            default_size_inspection_limit = "KB_64"
        }
    }
  }

  ...
}

References

https://docs.aws.amazon.com/waf/latest/APIReference/API_AssociationConfig.html

Would you like to implement a fix?

Yes

github-actions[bot] commented 1 year ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 1 year ago

This functionality has been released in v5.9.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 1 year ago

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.