-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Support configurable max nested level for wafv2 rule statement #14377
Comments
Hi @MAXxATTAXx, thank you for creating this issue! while the AWS Go SDK / APIs do allow for more than 3 levels of nesting, unfortunately within the provider, we've come across #14062 in the web_acl resource by supporting essentially 1 root statement and 3 nested statements which creates a challenging practitioner experience. so at this time, development to support this feature is blocked but I'll update here if there are any changes that can enable this request in the near future. |
Hi @anGie44, just following up with a bit more details about this: I hit the 3 level
At this point I'm planning to completely remove the offending rule group from terraform and manage it manually, but would love to hear about any workarounds or developments in this area. |
With each extra rule costing $1, this lack of ability is starting to get expensive for us. Anything slightly complex can't be completed in a single rule. We would be perfectly happy for a deployment to take more time if it saved us having to split up everything into multiple smaller rules. |
It's really not that hard to hit the limit of 3 nested statements, and it's incredibly upsetting that the limit is there, you essentially cripple a powerful AWS feature. I don't know what the provider does that even just 7 nested rules is slow, but unless it's literal hours I don't think it's worth removing the functionality altogether. Even 4 or 5 would be nice to have. |
Hello Do you have any news about this case ? |
Hello, news from this issue ? |
A workaround for this was added in v5.61.0 that allows you to specify the raw json in order to use a larger nested rule. The upstream Terraform issue still persists, and does result in the resource being virtually unusable with rules with any more than 3 levels of nesting (literal hours). My understanding is that the upstream issue is not likely to be resolved in the short term. We will keep this open in case the upstream issue does get fixed. |
Hello, any progress for this issue, or any plan on this. raw_json is not a practical workaround, since no drift for it, the terraform loss its meaning! |
Just hit this and agree that this needs a solution. It's already a pretty difficult resource API. Hitting additional limitations is unfortunate 😞 |
Community Note
Description
Allow during provider definition on terraform code to set the max level of nested statement supported by the schema.
Currently that value is hard coded to 3 max levels which excludes more complex use cases of the statement definition.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: