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
질문됨 10달 전224회 조회
1개 답변
1
수락된 답변

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
전문가
답변함 10달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠