diff --git a/terraform/cloudfront.tf b/terraform/cloudfront.tf index 47036ffa5e..c6e7b98020 100644 --- a/terraform/cloudfront.tf +++ b/terraform/cloudfront.tf @@ -516,12 +516,8 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_api" { restrictions { geo_restriction { - restriction_type = "whitelist" - locations = [ - "CA", - "US", - "AR" - ] + restriction_type = var.target_env = "prod" ? "blacklist" : "whitelist" + locations = var.target_env = "prod" ? [] : ["CA","US","AR"] } }