From 9b3538351f4545d6d0a8e30b498b9977877f21c8 Mon Sep 17 00:00:00 2001 From: vivid-cpreston <97257824+vivid-cpreston@users.noreply.github.com> Date: Wed, 17 May 2023 08:58:52 -0700 Subject: [PATCH] Wfnews 1116 (#718) * Updated runner used in github actions * Increased sensitivity of alarm triggering horizontal scaling * Remove prod geofencing --- terraform/cloudfront.tf | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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"] } }