mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 17:45:32 -04:00
Merge pull request #1781 from GSA/jskinne3-upgrade-terraform-cloudgov-domain
Upgrade terraform cloudgov domain
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
locals {
|
locals {
|
||||||
cf_org_name = "gsa-tts-benefits-studio"
|
cf_org_name = "gsa-tts-benefits-studio"
|
||||||
cf_space_name = "notify-local-dev"
|
cf_space_name = "notify-local-dev"
|
||||||
recursive_delete = true
|
|
||||||
key_name = "${var.username}-admin-dev-key"
|
key_name = "${var.username}-admin-dev-key"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,22 +44,25 @@ module "api_network_route" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# ##########################################################################
|
# ##########################################################################
|
||||||
# The following lines need to be commented out for the initial `terraform apply`
|
# This governs the name of our main website. Because domain names are unique,
|
||||||
# It can be re-enabled after:
|
# it only lives here in this one location in production. Resulting problem:
|
||||||
# 1) the app has first been deployed
|
# it is hard to test. Create a temporary, similar code block (with a different
|
||||||
# 2) the route has been manually created by an OrgManager:
|
# subdomain) in Sandbox, test your changes there, and bring them here.
|
||||||
|
#
|
||||||
|
# Dependencies:
|
||||||
|
# 1) an app named notify-admin-production in Cloud.gov
|
||||||
|
# 2) this route, manually created by an OrgManager:
|
||||||
# `cf create-domain gsa-tts-benefits-studio beta.notify.gov`
|
# `cf create-domain gsa-tts-benefits-studio beta.notify.gov`
|
||||||
# 3) the acme-challenge CNAME record must be created
|
# 3) the acme-challenge CNAME record
|
||||||
# https://cloud.gov/docs/services/external-domain-service/#how-to-create-an-instance-of-this-service
|
# https://cloud.gov/docs/services/external-domain-service/#how-to-create-an-instance-of-this-service
|
||||||
###########################################################################
|
###########################################################################
|
||||||
module "domain" {
|
module "domain" {
|
||||||
source = "github.com/18f/terraform-cloudgov//domain?ref=v0.7.1" # TODO: upgrade this
|
source = "github.com/GSA-TTS/terraform-cloudgov//domain?ref=v1.0.0"
|
||||||
|
|
||||||
cf_org_name = local.cf_org_name
|
cf_org_name = local.cf_org_name
|
||||||
cf_space_name = local.cf_space_name
|
cf_space_name = local.cf_space_name
|
||||||
app_name_or_id = "${local.app_name}-${local.env}"
|
app_name_or_id = "${local.app_name}-${local.env}"
|
||||||
name = "${local.app_name}-domain-${local.env}"
|
name = "${local.app_name}-domain-${local.env}"
|
||||||
recursive_delete = false
|
|
||||||
cdn_plan_name = "domain"
|
cdn_plan_name = "domain"
|
||||||
domain_name = "beta.notify.gov"
|
domain_name = "beta.notify.gov"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user