Skip to content

[Enhancement]: Support CHALLENGE WAF actions and overrides on individual WAF Rule Group Rules #27862

Description

@captaintino

Description

Terraform does not appear to support either the new CHALLENGE action on AWS WAF rules or allow the individual rule overwriting of existing rule groups into actions other than COUNT. I would like CHALLENGE to be a valid rule action and for AWS WAF rule group usage to allow for overwriting the actions of individual rules with all of the actions (COUNT, CAPTCHA, CHALLENGE, ALLOW, BLOCK)

Affected Resource(s) and/or Data Source(s)

aws_waf_rule
aws_waf_web_acl

Potential Terraform Configuration

statement {
      managed_rule_group_statement {
        name        = "AWSManagedRulesCommonRuleSet"
        vendor_name = "AWS"

        excluded_rule {
          name = "UserAgent_BadBots_HEADER"
          overwrite_action = "CHALLENGE"
        }

References

No response

Would you like to implement a fix?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequests to existing resources that expand the functionality or scope.service/wafv2Issues and PRs that pertain to the wafv2 service.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions