繁体   English   中英

我如何使用 cloudformation 创建和更新 WAF IPset

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM