Hello, I'm trying to set up a WAFV2 with my site ...
# aws
d
Hello, I'm trying to set up a WAFV2 with my site and getting errors while trying to add the AWS controlled rule sets. I believe I have everything correct with the definitions of the rule set (correct name and vendor name). Has anyone got these rule sets work that could show me what I'm possibly doing wrong? Snippet of what I'm working with:
Copy code
{
  name: 'AWSManagedRulesAdminProtectionRuleSet',
  priority: 3,
  action: { block: {} },
  statement: {
    managedRuleGroupStatement: {
      name: 'AWSManagedRulesAdminProtectionRuleSet',
      vendorName: 'AWS',
      ruleActionOverrides: [
        { name: 'AdminProtection_URIPATH', actionToUse: { count: {} } }
      ]
    }
  },
  visibilityConfig: {
    cloudwatchMetricsEnabled: true,
    metricName: 'AWSManagedRulesAdminProtectionRuleSet',
    sampledRequestsEnabled: true
  }
},