Skip to content

Commit

Permalink
Wfnews 1116 (#723)
Browse files Browse the repository at this point in the history
* Formatting change for geofencing
  • Loading branch information
vivid-cpreston authored May 17, 2023
1 parent 779f66c commit 1b26721
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions terraform/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_client" {

restrictions {
geo_restriction {
restriction_type = var.target_env == "prod" ? "blacklist" : "whitelist"
restriction_type = var.target_env == "prod" ? "none" : "whitelist"
locations = var.target_env == "prod" ? [] : ["CA", "US", "AR"]
}
}
Expand Down Expand Up @@ -191,7 +191,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_server" {

restrictions {
geo_restriction {
restriction_type = var.target_env == "prod" ? "blacklist" : "whitelist"
restriction_type = var.target_env == "prod" ? "none" : "whitelist"
locations = var.target_env == "prod" ? [] : ["CA", "US", "AR"]
}
}
Expand Down Expand Up @@ -296,7 +296,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_apisix" {

restrictions {
geo_restriction {
restriction_type = var.target_env == "prod" ? "blacklist" : "whitelist"
restriction_type = var.target_env == "prod" ? "none" : "whitelist"
locations = var.target_env == "prod" ? [] : ["CA", "US", "AR"]
}
}
Expand Down Expand Up @@ -400,7 +400,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_client" {

restrictions {
geo_restriction {
restriction_type = var.target_env == "prod" ? "blacklist" : "whitelist"
restriction_type = var.target_env == "prod" ? "none" : "whitelist"
locations = var.target_env == "prod" ? [] : ["CA", "US", "AR"]
}
}
Expand Down Expand Up @@ -503,7 +503,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_api" {

restrictions {
geo_restriction {
restriction_type = var.target_env == "prod" ? "blacklist" : "whitelist"
restriction_type = var.target_env == "prod" ? "none" : "whitelist"
locations = var.target_env == "prod" ? [] : ["CA", "US", "AR"]
}
}
Expand Down

0 comments on commit 1b26721

Please sign in to comment.