How to enable regex for WAF WebACL in CouldFormation template

0

I use CF to create WAF WebACL, and for the AWSManagedRulesATPRuleSet I want to enable regex for the LoginPath property.

In the WAF console I can toggle this on, and the EnableRegexInPath is mentioned in the WAF API document https://docs.aws.amazon.com/waf/latest/APIReference/API_AWSManagedRulesATPRuleSet.html#WAF-Type-AWSManagedRulesATPRuleSet-EnableRegexInPath

I want to create/config this rule from CF, but in the CF document there is nothing mentioning how to use the EnableRegexInPath https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html

Is it not achievable from CF? If we can do that, is there an example of how-to?

Thanks

Stoney
asked 9 months ago218 views
1 Answer
1
Accepted Answer

It certainly doesn't look like CloudFormation can enable it.
Currently, the only way to do this may be to use CloudFormation's custom resources, etc.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html

profile picture
EXPERT
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions