Unable to destroy aws_waf_web_acl resource when it contains a rule group #4076
Labels
bug
Addresses a defect in current functionality.
service/waf
Issues and PRs that pertain to the waf service.
Milestone
Terraform Version
Terraform v0.11.5
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/erikpaasonen/b75e45552cd1df07e8987464ad1aaa5e
Panic Output
N/A
Expected Behavior
Terraform should cleanly destroy the WebACL resource.
Actual Behavior
Get the above error message, and the WebACL is still present in the AWS Console.
Steps to Reproduce
terraform apply
against a .tf file with the above code.terraform destroy
Important Factoids
Our team is using a
null_resource
solution to script the attachment of an external rule group to a Terraform-managedaws_waf_web_acl
resource after Terraform completes. Unfortunately, now that we have a need to destroy (recreate) the Terraform resource, we're getting blocked by this bug. I didn't have to include thenull_resource
complexity because this error is reproducible exclusively using Terraform resources now.Also tried this with the new
waf-regional
resources, but it produced a Terraform crash. Will file that as a separate bug report and link to this one.References
#4052
The text was updated successfully, but these errors were encountered: