-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS WAF IPSet resources do not delete existing records correctly #10403
Comments
I'm also having a similar issue with v0.7.13. I'm unable to successfully remove ip_set_descriptors from the aws_waf_ipset resource. I can successfully add them, but when I remove/comment out one, "terraform apply" executes successfully, but looking at AWS console the IP still exists in the waf-rule. |
Same issue as @dstarr1, using Terraform v0.8.5. |
Issue still present using Terraform v0.8.8 |
still present in v0.9.1 |
I see it on Terraform v0.9.3. My use case is to create a empty IP set and then update it using lambda from third party reputation list. I see the error when applying the plan. Though it returns the error during the apply, it still creates the required resource. It shows the same error during the deletion but doesn't delete the resource. resource "aws_waf_ipset" "spam_third_party_list_1" {
|
@SandyFox This patch was released in 0.9.4, can you try upgrading to that version, please? Thanks. |
Upgraded to Terraform v0.9.4 and its working fine. Terraform plan/apply is taking too long to execute the results. At least few minutes. |
@radeksimko ^^^ |
@SandyFox I think this is unrelated to the original PR, but to answer your question the most likely reason it takes a bit more time to update is because we can only perform a single change at a time for the whole WAF. To achieve this and avoid errors caused by parallel changes with stale tokens we have recently implemented mutex for all WAF resources which guarantees that there's only a single update operation happening at any given time. This is in line with the relevant API documentation and expectations set by AWS/WAF. |
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 Version
Terraform v0.7.13
Not fixed in latest
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Debug Output
Expected Behavior
IP set should have reset to empty
Actual Behavior
Code does not produce "DELETE" updates correctly and errors out at validation step.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
terraform plan
,terraform apply
The text was updated successfully, but these errors were encountered: