Closed andreafalzetti closed 5 years ago
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 terraform plan
to fail in the refresh phase with:
error getting WAF Regional Web ACL for resource (<ALB ARN>): empty response
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:
error getting WAF Regional Web ACL for resource (<ALB ARN>): empty response
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.
Hi folks 👋 Thanks for the report and sorry for the trouble. Fix submitted here: https://github.com/terraform-providers/terraform-provider-aws/pull/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: