Sets up a Web ACL for preventing account creation fraud using AWS managed rules with specific path configurations.

Terraform Template

resource "aws_wafv2_web_acl" "acfp-example" {
  description = "Example of a managed ACFP rule."
  name = "managed-acfp-example"

  rule {
    name = "acfp-rule-1"
    priority = 1

    visibility_config {
      cloudwatch_metrics_enabled = false
      metric_name = "friendly-rule-metric-name"
      sampled_requests_enabled = false
    }
  }
  scope = "CLOUDFRONT"

  visibility_config {
    cloudwatch_metrics_enabled = false
    metric_name = "friendly-metric-name"
    sampled_requests_enabled = false
  }
}