mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 15:31:15 -05:00
This changeset reverts a few of our recent changes to the production and demo Terraform files to re-enable deployments. We are working through fixing this and will re-introduce these changes once we figure out how to get the changes to properly work (which are tied to the infrastructure checks as well). Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
91 lines
2.8 KiB
HCL
91 lines
2.8 KiB
HCL
locals {
|
|
cf_org_name = "gsa-tts-benefits-studio"
|
|
cf_space_name = "notify-production"
|
|
env = "production"
|
|
app_name = "notify-api"
|
|
recursive_delete = false
|
|
}
|
|
|
|
module "database" {
|
|
source = "github.com/18f/terraform-cloudgov//database?ref=v0.7.1"
|
|
|
|
cf_org_name = local.cf_org_name
|
|
cf_space_name = local.cf_space_name
|
|
name = "${local.app_name}-rds-${local.env}"
|
|
recursive_delete = local.recursive_delete
|
|
rds_plan_name = "small-psql-redundant"
|
|
}
|
|
|
|
module "redis" {
|
|
source = "github.com/18f/terraform-cloudgov//redis?ref=v0.7.1"
|
|
|
|
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 = "redis-3node-large"
|
|
}
|
|
|
|
module "csv_upload_bucket" {
|
|
source = "github.com/18f/terraform-cloudgov//s3?ref=v0.7.1"
|
|
|
|
cf_org_name = local.cf_org_name
|
|
cf_space_name = local.cf_space_name
|
|
recursive_delete = local.recursive_delete
|
|
name = "${local.app_name}-csv-upload-bucket-${local.env}"
|
|
}
|
|
|
|
module "egress-space" {
|
|
source = "../shared/egress_space"
|
|
|
|
cf_org_name = local.cf_org_name
|
|
cf_restricted_space_name = local.cf_space_name
|
|
deployers = [
|
|
var.cf_user
|
|
]
|
|
}
|
|
|
|
module "ses_email" {
|
|
source = "../shared/ses"
|
|
|
|
cf_org_name = local.cf_org_name
|
|
cf_space_name = local.cf_space_name
|
|
name = "${local.app_name}-ses-${local.env}"
|
|
recursive_delete = local.recursive_delete
|
|
aws_region = "us-gov-west-1"
|
|
email_domain = "notify.gov"
|
|
mail_from_subdomain = "mail"
|
|
email_receipt_error = "notify-support@gsa.gov"
|
|
}
|
|
|
|
module "sns_sms" {
|
|
source = "../shared/sns"
|
|
|
|
cf_org_name = local.cf_org_name
|
|
cf_space_name = local.cf_space_name
|
|
name = "${local.app_name}-sns-${local.env}"
|
|
recursive_delete = local.recursive_delete
|
|
aws_region = "us-gov-west-1"
|
|
monthly_spend_limit = 1000
|
|
}
|
|
|
|
###########################################################################
|
|
# The following lines need to be commented out for the initial `terraform apply`
|
|
# It can be re-enabled after:
|
|
# TODO: decide on public API domain name
|
|
# 1) the app has first been deployed
|
|
# 2) the route has been manually created by an OrgManager:
|
|
# `cf create-domain gsa-tts-benefits-studio api.notify.gov`
|
|
###########################################################################
|
|
# module "domain" {
|
|
# source = "github.com/18f/terraform-cloudgov//domain?ref=v0.7.1"
|
|
#
|
|
# 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 = "api.notify.gov"
|
|
# }
|