-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
error getting WAF Regional Web ACL for resource (<api gw stage arn>): empty response #9203
Comments
I just saw this error in a different scenario. I had a web ACL association with an ALB. Manually removing the association outside of Terraform caused
Manually recreating the association fixed the error. |
Ran into a similar issue as above on terraform 0.12.5 with aws provider 2.23.0:
After deleting all WAF resources in my test environment and running terraform plan to recreate. Tried terraform reset to update state, but this did not help. As mentioned above, had to manually recreate WAF ACL and associate ALBs before re-running terraform plan. |
… triggers state removal Reference: #9203 Previous to code change: ``` --- FAIL: TestAccAWSWafRegionalWebAclAssociation_disappears (175.64s) testing.go:569: Step 0 error: errors during follow-up refresh: Error: error getting WAF Regional Web ACL for resource (arn:aws:elasticloadbalancing:us-west-2:--OMITTED--:loadbalancer/app/tf-lb-20190924095723723200000001/e2739f0d448dc712): empty response ``` Output from acceptance testing: ``` --- PASS: TestAccAWSWafRegionalWebAclAssociation_disappears (207.92s) ```
Hi folks 👋 Thanks for the report and sorry for the trouble. Fix submitted here: #10216 |
The fix for this has been merged and will release with version 2.31.0 of the Terraform AWS Provider, later this week. 👍 |
This has been released in version 2.31.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 for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform apply should attach a regional WAF ACL to an API GW stage.
Actual Behavior
Terraform apply fails because it cannot find the resource (empty response).
Steps to Reproduce
References
Using the AWS cli, this operation is possible:
The text was updated successfully, but these errors were encountered: