[英]how can i create and update WAF IPset using cloudformation
我需要使用 Cloud formation 創建一個 WAF IP SET
我嘗試編寫堆棧模板,但無法創建 IP Set
AWS CloudFormation WAFv2 IPSet 文檔
這是我創建的 Cloudformation WAF 部署示例。 它運作良好。
Resources:
WAFblockIPSet:
Type: AWS::WAFv2::IPSet
Properties:
Addresses:
- 255.255.255.255/32
Description: blocking IPs that dont belong
IPAddressVersion: IPV4
Name: BlockIPSet
Scope: REGIONAL
Outputs:
myWAFBlockIPSet:
Description: IPSet creation
Value: !GetAtt WAFblockIPSet.Arn
Export:
Name: MySharedServicesWAFBlockIPSetARN
導出 IPSet arn 后,您將在 CloudFormation WebACL 堆棧中使用它:-)
CloudFormation 中 webacl 和 IPSet 的好例子
希望這可以幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.