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
gefragt vor 10 Monaten224 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 10 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen