2022-11-08 11:45:37 -05:00
|
|
|
locals {
|
2024-07-17 17:35:17 -07:00
|
|
|
cf_org_name = "gsa-tts-benefits-studio"
|
|
|
|
|
cf_space_name = "notify-sandbox"
|
|
|
|
|
env = "sandbox"
|
|
|
|
|
app_name = "notify-admin"
|
2022-11-08 11:45:37 -05:00
|
|
|
}
|
|
|
|
|
|
2024-07-17 16:47:30 -07:00
|
|
|
resource "null_resource" "prevent_destroy" {
|
|
|
|
|
|
|
|
|
|
lifecycle {
|
|
|
|
|
prevent_destroy = false # destroying sandbox is allowed
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-25 14:59:12 -07:00
|
|
|
module "redis-v70" {
|
|
|
|
|
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
|
|
|
|
|
|
|
|
|
|
cf_org_name = local.cf_org_name
|
|
|
|
|
cf_space_name = local.cf_space_name
|
|
|
|
|
name = "${local.app_name}-redis-v70-${local.env}"
|
|
|
|
|
redis_plan_name = "redis-dev"
|
|
|
|
|
json_params = jsonencode(
|
|
|
|
|
{
|
|
|
|
|
"engineVersion" : "7.0",
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-08 11:45:37 -05:00
|
|
|
module "logo_upload_bucket" {
|
2024-07-17 16:52:51 -07:00
|
|
|
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v1.0.0"
|
2022-11-08 11:45:37 -05:00
|
|
|
|
2024-07-17 17:35:17 -07:00
|
|
|
cf_org_name = local.cf_org_name
|
|
|
|
|
cf_space_name = local.cf_space_name
|
|
|
|
|
name = "${local.app_name}-logo-upload-bucket-${local.env}"
|
2022-11-08 11:45:37 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# ##########################################################################
|
|
|
|
|
# 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}"
|
|
|
|
|
# }
|