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

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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ