Rule TYPE argument not supported in wafregional_web_acl #4226
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/waf
Issues and PRs that pertain to the waf service.
Milestone
Terraform Version
0.11.7
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
Expected Behavior
wafregional_rate_based_rule should be attached to wafregional_web_acl
Actual Behavior
Error (above).
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
After a bit of digging, it seems the rule TYPE argument is not supported in wafregional_web_acl (although it IS supported is waf_web_acl). Without this argument, it is not possible to reference a RATE_BASED rule.
References
See https://docs.aws.amazon.com/waf/latest/APIReference/API_regional_ActivatedRule.html:
TYPE: Although this field is optional, be aware that if you try to add a RATE_BASED rule to a web ACL without setting the type, the UpdateWebACL request will fail because the request tries to add a REGULAR rule with the specified ID, which does not exist.
The text was updated successfully, but these errors were encountered: