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
feita há 10 meses224 visualizações
1 Resposta
1
Resposta aceita

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
ESPECIALISTA
respondido há 10 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas