【问题标题】:wafv2 webacl cloudformation gets error when I tried to attach the rulegroup I created当我尝试附加我创建的规则组时,wafv2 webacl cloudformation 出现错误
【发布时间】:2020-11-18 20:59:28
【问题描述】:

我写了这个cloudformation

它一直给我这个错误

错误原因:您的规则语句中的引用无效。,字段:RULE,参数:语句(服务:Wafv2,状态代码:400,请求 ID:8f88058f-556e-4fec-baf2-9a84d0353bbe,扩展请求 ID :空)

以前有人见过这个错误吗 ? 谢谢

      {
        "Name": "Rule",
        "Priority": 1,
        "Action": {
          "Block": {}
        },
        "VisibilityConfig": {
          "SampledRequestsEnabled": true,
          "CloudWatchMetricsEnabled": true,
          "MetricName": "customrule"
        },
       "Statement": {
                        "RuleGroupReferenceStatement": {
                            "Arn": { "Fn::GetAtt" : [ "TestRuleGroup", "Arn" ]
            
          }
        }
      }
    
  }

【问题讨论】:

    标签: amazon-web-services amazon-cloudformation amazon-waf


    【解决方案1】:

    当您引用规则组时,您应该在代码中添加以下内容 即使您不想覆盖该字段,也需要该字段,请根据文档指定“无”。

    OverrideAction:
      None: {}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-06
      • 2021-10-02
      • 2021-02-13
      • 2023-03-21
      • 2012-04-24
      • 2011-11-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多