-
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
[Enhancement]: Add support for Custom keys and Count all rate-limiting criteria in WAF #31625
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
[RateBasedStatement](https://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedStatement.html) supports `IP`, `FORWARDED_IP` but also `CONSTANT` and `CUSTOM_KEYS`. `CONSTANT` is already supported because validation is made against aws SDK where it is declared as valid value. Relates to hashicorp#31625
We had a feature request with AWS for this, I stopped Nginx in favor of this feature, but I cannot do terraform for it. |
Besides the |
A workaround for now when creating a new resource is to do the WAF rule based upon "IP", terraform everything, then manually change to CUSTOM_KEYS + whatever settings, then updating the TF code to say "CUSTOM_KEYS" and there is no diff. It's not perfect but this way one can create the resource with TF and maintain the main lifecycle of it. |
@peter-hippo how did you get around the errors when doing
|
@matthewbae Are you using the latest version of the aws provider? I had the same issue using 4.64.0. After a bump to 5.10.0 (then the latest version) it went away. |
Thanks @sakaru. I'm on 4.30.0, so I'll give a bump to the latest version! |
Any ETA on the availability of this feature? |
This functionality has been released in v5.19.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. Thank you! |
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. |
Description
Rate limiting only supports 2 out of 4 possible aggregation criteria:
https://registry.terraform.io/providers/hashicorp/aws/4.67.0/docs/resources/wafv2_web_acl#aggregate_key_type
Affected Resource(s) and/or Data Source(s)
aws_wafv2_web_acl
Potential Terraform Configuration
No response
References
https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-rate-based-aggregation-options.html
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: