Can I only configure up to 5 Statements in AWS WAF?

Can I only configure up to 5 Statements in AWS WAF?

2025.08.21

Issue I Was Struggling With

I was configuring Statement within AWS WAF rules, but
encountered a constraint where only up to 5 Statement settings are allowed, and I couldn't add a 6th or more.
I'd like to know if there's a way to work around this limitation and set 6 or more Statement configurations.

Specific Answer

When using AND or OR statements within an AWS WAF Rule,
the visual editor restricts you to a maximum of 5 Statement configurations that can be nested within a single AND / OR statement.

To bypass this limitation and combine 6 or more conditions, you can use the JSON editor.
Specifically, you can accomplish this by utilizing nested structures in the JSON editor.

Reference Materials

Share this article

FacebookHatena blogX

Related articles