Open uyggnodoow opened 1 month ago
Voting for Prioritization
Volunteering to Work on This Issue
Hey @uyggnodoow 👋 Thank you for taking the time to raise this! So that we have the necessary information in order to review this, can you provide a sample Terraform configuration that can be used to reproduce this and/or debug logging (redacted as needed)?
Hey @justinretzolk
Thanks for response. The Terraform modules I'm using are listed below. You can refer to the examples folder to configure your rules.
Thanks for that information @uyggnodoow. One more question before I remove the needs-triage
label and let the team or community prioritize this as we're able to: if you run terraform apply
again, is the value updated to the correct value?
Hello, @justinretzolk
I apologize for the delay in responding.
It does not show 'No Changes' even though there is no change in the policy. It shows the change in 'aws_wafv2_capacity'.
# terragrunt plan
...
aws_wafv2_web_acl.this: Refreshing state... [id=67db98df-342f-42c5-9395-5d6fee941e7a]
aws_wafv2_web_acl_logging_configuration.this[0]: Refreshing state... [id=arn:aws:wafv2:ap-northeast-2::regional/webacl//67db98df-342f-42c5-9395-5d6fee941e7a]
Changes to Outputs:
~ aws_wafv2_capacity = 2630 -> 1630
You can apply this plan to save these new output values to the Terraform
state, without changing any real infrastructure.
# terragrunt apply
...
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
aws_wafv2_arn = "arn:aws:wafv2:ap-northeast-2::regional/webacl//67db98df-342f-42c5-9395-5d6fee941e7a"
aws_wafv2_capacity = 1630
Description
Hello 👋
It's not clear if this is actually an issue with Terraform, here are the issues I've encountered.
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
References
No response
Would you like to implement a fix?
None