mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-25 18:38:57 -04:00
61 lines
2.3 KiB
HCL
61 lines
2.3 KiB
HCL
locals {
|
|
cf_org_name = "gsa-tts-benefits-studio-prototyping"
|
|
cf_space_name = "notify-prod"
|
|
env = "production"
|
|
app_name = "notify-admin"
|
|
recursive_delete = false
|
|
}
|
|
|
|
module "redis" {
|
|
source = "github.com/18f/terraform-cloudgov//redis?ref=v0.2.0"
|
|
|
|
cf_org_name = local.cf_org_name
|
|
cf_space_name = local.cf_space_name
|
|
name = "${local.app_name}-redis-${local.env}"
|
|
recursive_delete = local.recursive_delete
|
|
redis_plan_name = "TKTK-production-redis-plan"
|
|
}
|
|
|
|
module "logo_upload_bucket" {
|
|
source = "github.com/18f/terraform-cloudgov//s3?ref=v0.2.0"
|
|
|
|
cf_org_name = local.cf_org_name
|
|
cf_space_name = local.cf_space_name
|
|
recursive_delete = local.recursive_delete
|
|
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"
|
|
#
|
|
# 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}"
|
|
# }
|
|
|
|
# ##########################################################################
|
|
# The following lines need to be commented out for the initial `terraform apply`
|
|
# It can be re-enabled after:
|
|
# 1) the app has first been deployed
|
|
# 2) the route has been manually created by an OrgManager:
|
|
# `cf create-domain TKTK-org-name TKTK-production-domain-name`
|
|
###########################################################################
|
|
# module "domain" {
|
|
# source = "github.com/18f/terraform-cloudgov//domain?ref=v0.2.0"
|
|
#
|
|
# cf_org_name = local.cf_org_name
|
|
# cf_space_name = local.cf_space_name
|
|
# app_name_or_id = "${local.app_name}-${local.env}"
|
|
# name = "${local.app_name}-domain-${local.env}"
|
|
# recursive_delete = local.recursive_delete
|
|
# cdn_plan_name = "domain"
|
|
# domain_name = "TKTK-production-domain-name"
|
|
# }
|