Error when adding a rule to the web acl (waf) #9602
Labels
question
A question about existing functionality; most questions are re-routed to discuss.hashicorp.com.
service/waf
Issues and PRs that pertain to the waf service.
Terraform Version
Terraform v0.11.13
Terraform Configuration Files
Debug Output
Error: Error applying plan:
1 error(s) occurred:
aws_wafregional_web_acl.abt_geo: 1 error(s) occurred:
aws_wafregional_web_acl.abt_geo: Error Updating WAF Regional ACL: WAFNonexistentItemException: The referenced item does not exist.
status code: 400, request id: bb07316c-b507-11e9-abea-651a98b64b5e
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
[terragrunt] 2019/08/02 09:27:22 Hit multiple errors:
exit status 1
MSG:
non-zero return code
Expected Behavior
The rule needs to be added to waf web acl
Actual Behavior
I'm getting an error "aws_wafregional_web_acl.abt_geo: Error Updating WAF Regional ACL: WAFNonexistentItemException: The referenced item does not exist."
Steps to Reproduce
terraform apply
Additional Context
Almost everything is working correctly, I can see that terraform is adding conditions to Geo match, conditions contains correct values, also I can see correct rule and web acl, but for some reason the rule is not getting added to new web acl and I'm getting an error that apparently the referenced item does not exist.
I'm using provider 2.13.0 but I've also tested version 1.60.0.
There was a similar issue in the ticket #4078
The text was updated successfully, but these errors were encountered: