Skip to content

[WAFv2] aws_wafv2_web_acl capacity attribute's value is not updated correctly #39867

Open
@uyggnodoow

Description

Description

Hello 👋

It's not clear if this is actually an issue with Terraform, here are the issues I've encountered.

  • Terraform Core Version : 1.7.5
  • AWS Provider Version : 5.72.1
  • Affected Resource(s) : webACL

We removed a few rules through the WAF deployment using terraform.

Before deployment, the WebACL's WCUs is 2630, but the rule removal should reduce the WCUs by 1000 or so.

I actually deployed it, and it looks fine in the AWS management console: (2630 - > 1645)

However, in the CLI, it looks like this

Plan: 0 to add, 1 to change, 0 to destroy.

Changes to Outputs:
  ~ aws_wafv2_capacity                         = 2630 -> 2645

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

aws_wafv2_web_acl.this: Modifying... [id=]
aws_wafv2_web_acl.this: Modifications complete after 4s [id=]

Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Outputs:

aws_wafv2_arn = ""
aws_wafv2_capacity = 2645

References

No response

Would you like to implement a fix?

None

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.service/wafv2Issues and PRs that pertain to the wafv2 service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions