diff --git a/terraform/demo/main.tf b/terraform/demo/main.tf index 4223e29e4..d0b8ef92c 100644 --- a/terraform/demo/main.tf +++ b/terraform/demo/main.tf @@ -34,12 +34,6 @@ module "logo_upload_bucket" { name = "${local.app_name}-logo-upload-bucket-${local.env}" } -# ########################################################################## -# The following lines need to be commented out for the initial `terraform apply` -# It can be re-enabled after: -# 1) the api app has first been deployed -# 2) the admin app has first been deployed -########################################################################### module "api_network_route" { source = "../shared/container_networking" diff --git a/terraform/production/main.tf b/terraform/production/main.tf index c0bcdc556..dbbbc548f 100644 --- a/terraform/production/main.tf +++ b/terraform/production/main.tf @@ -34,12 +34,6 @@ module "logo_upload_bucket" { name = "${local.app_name}-logo-upload-bucket-${local.env}" } -# ########################################################################## -# The following lines need to be commented out for the initial `terraform apply` -# It can be re-enabled after: -# 1) the api app has first been deployed -# 2) the admin app has first been deployed -########################################################################### module "api_network_route" { source = "../shared/container_networking" diff --git a/terraform/sandbox/main.tf b/terraform/sandbox/main.tf index ad0748199..76495b4c9 100644 --- a/terraform/sandbox/main.tf +++ b/terraform/sandbox/main.tf @@ -34,17 +34,11 @@ module "logo_upload_bucket" { name = "${local.app_name}-logo-upload-bucket-${local.env}" } -# ########################################################################## -# The following lines need to be commented out for the initial `terraform apply` -# It can be re-enabled after: -# 1) the api app has first been deployed -# 2) the admin app has first been deployed -########################################################################### -# module "api_network_route" { -# source = "../shared/container_networking" +module "api_network_route" { # API and Admin apps must both exist in Cloud + source = "../shared/container_networking" -# cf_org_name = local.cf_org_name -# cf_space_name = local.cf_space_name -# source_app_name = "${local.app_name}-${local.env}" -# destination_app_name = "notify-api-${local.env}" -# } + cf_org_name = local.cf_org_name + cf_space_name = local.cf_space_name + source_app_name = "${local.app_name}-${local.env}" + destination_app_name = "notify-api-${local.env}" +} diff --git a/terraform/staging/main.tf b/terraform/staging/main.tf index 99ef28590..87c1e64dd 100644 --- a/terraform/staging/main.tf +++ b/terraform/staging/main.tf @@ -34,12 +34,6 @@ module "logo_upload_bucket" { name = "${local.app_name}-logo-upload-bucket-${local.env}" } -# ########################################################################## -# The following lines need to be commented out for the initial `terraform apply` -# It can be re-enabled after: -# 1) the api app has first been deployed -# 2) the admin app has first been deployed -########################################################################### module "api_network_route" { source = "../shared/container_networking"