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]: aws_wafv2_web_acl should allow changing the maximum request body inspection. #32141

Closed sergiocharpineljr closed 1 year ago

sergiocharpineljr commented 1 year ago

Description

aws_wafv2_web_acl should allow changing the maximum request body inspection when associated with CloudFront.

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

Potential Terraform Configuration

resource "aws_wafv2_web_acl" "example" {
  name        = "managed-rule-example"
  description = "Example of a managed rule."
  scope       = "CLOUDFRONT"
  ...
  association_config {
    request_body {
      key = "CLOUDFRONT"
      default_size_inspection_limit = "KB_64"
   }
}

References

https://aws.amazon.com/about-aws/whats-new/2023/04/aws-waf-body-inspections-amazon-cloudfront-distributions/

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

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.