2022-11-04 11:48:01 -04:00
|
|
|
locals {
|
2024-04-03 14:07:28 -04:00
|
|
|
cf_org_name = "gsa-tts-benefits-studio"
|
|
|
|
|
cf_space_name = "notify-sandbox"
|
|
|
|
|
env = "sandbox"
|
|
|
|
|
app_name = "notify-api"
|
2022-11-04 11:48:01 -04:00
|
|
|
}
|
|
|
|
|
|
2024-06-07 17:27:24 -07:00
|
|
|
resource "null_resource" "prevent_destroy" {
|
|
|
|
|
|
|
|
|
|
lifecycle {
|
|
|
|
|
prevent_destroy = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-11-04 11:48:01 -04:00
|
|
|
module "database" {
|
2024-06-03 15:01:03 -07:00
|
|
|
source = "github.com/GSA-TTS/terraform-cloudgov//database?ref=v1.0.0"
|
2022-11-04 11:48:01 -04:00
|
|
|
|
2024-04-03 14:07:28 -04:00
|
|
|
cf_org_name = local.cf_org_name
|
|
|
|
|
cf_space_name = local.cf_space_name
|
|
|
|
|
name = "${local.app_name}-rds-${local.env}"
|
|
|
|
|
rds_plan_name = "micro-psql"
|
2022-11-04 11:48:01 -04:00
|
|
|
}
|
|
|
|
|
|
2024-06-14 17:11:16 -07:00
|
|
|
module "redis" { # default v6.2; delete after v7.0 resource is bound
|
2024-06-03 15:01:03 -07:00
|
|
|
source = "github.com/GSA-TTS/terraform-cloudgov//redis?ref=v1.0.0"
|
2022-11-04 11:48:01 -04:00
|
|
|
|
2024-04-03 14:07:28 -04:00
|
|
|
cf_org_name = local.cf_org_name
|
|
|
|
|
cf_space_name = local.cf_space_name
|
|
|
|
|
name = "${local.app_name}-redis-${local.env}"
|
|
|
|
|
redis_plan_name = "redis-dev"
|
2022-11-04 11:48:01 -04:00
|
|
|
}
|
|
|
|
|
|
2024-06-14 17:11:16 -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-04 11:48:01 -04:00
|
|
|
module "csv_upload_bucket" {
|
2024-06-03 15:01:03 -07:00
|
|
|
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v1.0.0"
|
2022-11-04 11:48:01 -04:00
|
|
|
|
2024-04-03 14:07:28 -04:00
|
|
|
cf_org_name = local.cf_org_name
|
|
|
|
|
cf_space_name = local.cf_space_name
|
|
|
|
|
name = "${local.app_name}-csv-upload-bucket-${local.env}"
|
2022-11-04 11:48:01 -04:00
|
|
|
}
|
|
|
|
|
|
2022-11-04 16:37:32 -04:00
|
|
|
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,
|
2023-10-13 11:07:07 -04:00
|
|
|
"steven.reilly@gsa.gov",
|
|
|
|
|
"carlo.costino@gsa.gov"
|
2022-11-04 16:37:32 -04:00
|
|
|
]
|
|
|
|
|
}
|
2022-10-17 15:16:08 -04:00
|
|
|
|
|
|
|
|
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}"
|
|
|
|
|
aws_region = "us-west-2"
|
|
|
|
|
email_receipt_error = "notify-support@gsa.gov"
|
|
|
|
|
}
|
2023-02-09 16:23:37 -05:00
|
|
|
|
2023-02-21 16:48:42 -05:00
|
|
|
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}"
|
|
|
|
|
aws_region = "us-east-2"
|
|
|
|
|
monthly_spend_limit = 1
|
|
|
|
|
}
|