mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 17:22:17 -05:00
This changeset updates the Terraform user configuration in several environments to factor in team member changes, and reverts the previous change to the staging deploy to see if there was an issue with the last update which is preventing the workflow from running now. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
75 lines
1.8 KiB
HCL
75 lines
1.8 KiB
HCL
locals {
|
|
cf_org_name = "gsa-tts-benefits-studio"
|
|
cf_space_name = "notify-sandbox"
|
|
env = "sandbox"
|
|
app_name = "notify-api"
|
|
}
|
|
|
|
resource "null_resource" "prevent_destroy" {
|
|
|
|
lifecycle {
|
|
prevent_destroy = false
|
|
}
|
|
}
|
|
|
|
module "database" {
|
|
source = "github.com/GSA-TTS/terraform-cloudgov//database?ref=v1.0.0"
|
|
|
|
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"
|
|
}
|
|
|
|
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",
|
|
}
|
|
)
|
|
}
|
|
|
|
module "csv_upload_bucket" {
|
|
source = "github.com/GSA-TTS/terraform-cloudgov//s3?ref=v1.0.0"
|
|
|
|
cf_org_name = local.cf_org_name
|
|
cf_space_name = local.cf_space_name
|
|
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}"
|
|
aws_region = "us-west-2"
|
|
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}"
|
|
aws_region = "us-east-2"
|
|
monthly_spend_limit = 1
|
|
}
|