cloudposse / terraform-aws-waf

https://cloudposse.com/accelerate
Apache License 2.0
40 stars 57 forks source link

Add support for custom responses for more rules, such as size_constraint_statement_rules #95

Open maggie-weber opened 1 month ago

maggie-weber commented 1 month ago

Describe the Feature

When manually configuring WAF rules, users can configure custom responses for rule types like size_constraint. The Terraform resources on which this is based also seems to support this, but the configuration hasn't been extended out to this module.

The field is already configurable for rule_group_reference_statement_rules.rule_action_override.custom_response and managed_rule_group_statement_rules.rule_action_override.custom_response.

Expected Behavior

The custom_response block that already exists should be extended to other rule types where it is support by AWS and the underlying Terraform resources.

Use Case

I would like to provide a contextual error message to consumers of my API when the request size is too large.

Describe Ideal Solution

The custom_response block that already exists should be extended to other rule types where it is support by AWS and the underlying Terraform resources.

Alternatives Considered

No response

Additional Context

No response