diff --git a/ecs-cluster-infrastructure-waf.tf b/ecs-cluster-infrastructure-waf.tf index 50d5a7d..a846e5d 100644 --- a/ecs-cluster-infrastructure-waf.tf +++ b/ecs-cluster-infrastructure-waf.tf @@ -5,7 +5,7 @@ resource "aws_wafv2_ip_set" "infrastructure_ecs_cluster_ip_deny_list" { name = "${local.resource_prefix}-${each.key}-ip-deny-list" description = "IP addresses to block on ${local.resource_prefix}-${each.key}" - scope = "REGIONAL" + scope = "CLOUDFRONT" ip_address_version = "IPV4" addresses = each.value["ip_deny_list"] } @@ -17,7 +17,7 @@ resource "aws_wafv2_web_acl" "infrastructure_ecs_cluster" { name = "${local.resource_prefix}-${each.key}" description = "${local.resource_prefix} ${each.key}" - scope = "REGIONAL" + scope = "CLOUDFRONT" default_action { allow {}