waf_rate_rule_set
Create or remove a rate-based rule on a WebACL to limit requests per client IP per 5-minute window, with optional URI path scoping. Reversible via remove=true.
Instructions
Create/attach (or remove) a WAF rate-based rule on a site's WebACL — the durable fix for a flood. 'site' is a WebACL ARN, ALB ARN, or instance id/name. 'limit' is requests per 5-min window per client IP; 'uri_scope' optionally restricts to a URI path prefix. Reversible (remove=true). DANGEROUS — confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | WebACL ARN, ALB ARN, or instance id/name. | |
| rule_name | No | Rule name (idempotent — reusing it updates the limit). | servonaut-rate |
| limit | No | Requests per 5-minute window per IP (default 2000). | |
| uri_scope | No | Optional URI path prefix to scope the rule to (e.g. '/'). | |
| action | No | 'block' enforces; 'count' only meters (dry-run). | block |
| remove | No | Remove the named rule instead of adding it. | |
| region | No | AWS region override. |