Closed luarx closed 1 year ago
Voting for Prioritization
Volunteering to Work on This Issue
Updating WAF should not remove the ShieldMitigationGroup rule. Existing WAF rules need to be read and mitigation group rule merged into update.
i too am struggling with the very same issue.
there are no references of the ShieldMitigationGroup rule on the state change output yet applying rule modifications on the aws_wafv2_web_acl
resource removes the shield group rule from it.
i got this using terraform version 1.5.4
and aws provider version 5.12.0
.
This functionality has been released in v5.15.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!
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.
Terraform Core Version
v1.2.5
AWS Provider Version
4.56.0
Affected Resource(s)
aws_wafv2_web_acl
Expected Behavior
When I modify a rule from
aws_wafv2_web_acl
usingterraform apply
, it should not remove the ShieldMitigationRuleGroupActual Behavior
When I modify a rule from
aws_wafv2_web_acl
usingterraform apply
, it does not indicate that it will remove the ShieldMitigationRuleGroup as before (https://github.com/hashicorp/terraform-provider-aws/issues/22869), but at the end it does it! :(So I consider that this is not fixed yet...
I suspect that it is because it tries to re-order, rules in someway
Example of terraform apply output that has removed
ShieldMitigationRuleGroup
without indicating it:Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
*
Steps to Reproduce
aws_wafv2_web_acl
resource using TerraformShieldMitigationRuleGroup
ruleaws_wafv2_web_acl
resourceterraform apply
(it will not say that it will remove the Shield rule)Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None