Skip to content

Commit

Permalink
New url (#682)
Browse files Browse the repository at this point in the history
* updates for vanity url
  • Loading branch information
vivid-cpreston authored Apr 14, 2023
1 parent 460e0b6 commit e3e3774
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions terraform/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_client" {
"PUT"]
cached_methods = ["GET", "HEAD"]

target_origin_id = "wfnews_client_${var.target_env}"
target_origin_id = "wfnews_client_gov_${var.target_env}"

forwarded_values {
query_string = true
Expand All @@ -389,7 +389,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_client" {
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]

target_origin_id = "wfnews_client_${var.target_env}"
target_origin_id = "wfnews_client_gov_${var.target_env}"

forwarded_values {
query_string = false
Expand All @@ -412,6 +412,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_client" {
restriction_type = "whitelist"
locations = [
"CA",
"US",
"AR"
]
}
Expand Down Expand Up @@ -442,7 +443,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_api" {
}

domain_name = "${var.apisix_names[0]}.${var.license_plate}-${var.target_env}.nimbus.cloud.gov.bc.ca"
origin_id = "wfnews_apisix_${var.target_env}"
origin_id = "wfnews_apisix_gov_${var.target_env}"
custom_header {
name = "X-Cloudfront-Header"
value = var.cloudfront_header
Expand Down Expand Up @@ -473,7 +474,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_api" {
"PUT"]
cached_methods = ["GET", "HEAD"]

target_origin_id = "wfnews_apisix_${var.target_env}"
target_origin_id = "wfnews_apisix_gov_${var.target_env}"

forwarded_values {
query_string = true
Expand All @@ -495,7 +496,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_api" {
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]

target_origin_id = "wfnews_apisix_${var.target_env}"
target_origin_id = "wfnews_apisix_gov_${var.target_env}"

forwarded_values {
query_string = false
Expand All @@ -518,6 +519,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_api" {
restriction_type = "whitelist"
locations = [
"CA",
"US",
"AR"
]
}
Expand All @@ -526,7 +528,7 @@ resource "aws_cloudfront_distribution" "wfnews_geofencing_gov_api" {
tags = local.common_tags

viewer_certificate {
acm_certificate_arn = var.gov_certificate_arn
acm_certificate_arn = var.gov_api_certificate_arn
ssl_support_method = "sni-only"
}
}
Expand Down
4 changes: 2 additions & 2 deletions terraform/prod/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ generate "test_tfvars" {
license_plate = "${local.license_plate}"
sns_email_targets = "${local.sns_email_targets}"
certificate_arn = "arn:aws:acm:us-east-1:598317316742:certificate/cb36048d-70e1-45e9-b2eb-2e0ea7e808cf"
gov_certificate_arn = "arn:aws:acm:us-east-1:598317316742:certificate/c9661e46-ee96-40f2-8fe7-de9e0cf1497b"
gov_api_certificate_arn = "arn:aws:acm:us-east-1:598317316742:certificate/c127327c-295a-4afd-8545-5b47c4891b91"
gov_certificate_arn = "arn:aws:acm:us-east-1:598317316742:certificate/c127327c-295a-4afd-8545-5b47c4891b91"
gov_api_certificate_arn = "arn:aws:acm:us-east-1:598317316742:certificate/c9661e46-ee96-40f2-8fe7-de9e0cf1497b"
WEBADE-OAUTH2_TOKEN_CLIENT_URL = "${local.WEBADE-OAUTH2_TOKEN_CLIENT_URL}"
WEBADE-OAUTH2_TOKEN_URL ="${local.WEBADE-OAUTH2_TOKEN_URL}"
WEBADE_OAUTH2_WFNEWS_REST_CLIENT_SECRET ="${local.WEBADE_OAUTH2_WFNEWS_REST_CLIENT_SECRET}"
Expand Down

0 comments on commit e3e3774

Please sign in to comment.