mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 18:52:30 -05:00
Add sandbox space
This commit is contained in:
@@ -425,5 +425,6 @@ configs = {
|
|||||||
'test': Test,
|
'test': Test,
|
||||||
'staging': Staging,
|
'staging': Staging,
|
||||||
'demo': Demo,
|
'demo': Demo,
|
||||||
|
'sandbox': Staging,
|
||||||
'production': Production
|
'production': Production
|
||||||
}
|
}
|
||||||
|
|||||||
10
deploy-config/sandbox.yml
Normal file
10
deploy-config/sandbox.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
env: sandbox
|
||||||
|
web_instances: 1
|
||||||
|
web_memory: 1G
|
||||||
|
worker_instances: 1
|
||||||
|
worker_memory: 512M
|
||||||
|
public_api_route: notify-api-sandbox.app.cloud.gov
|
||||||
|
admin_base_url: https://notify-sandbox.app.cloud.gov
|
||||||
|
ADMIN_CLIENT_SECRET: dev-notify-secret-key
|
||||||
|
DANGEROUS_SALT: dev-notify-salt
|
||||||
|
SECRET_KEY: dev-notify-secret-key
|
||||||
55
terraform/sandbox/main.tf
Normal file
55
terraform/sandbox/main.tf
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
locals {
|
||||||
|
cf_org_name = "gsa-tts-benefits-studio-prototyping"
|
||||||
|
cf_space_name = "notify-sandbox"
|
||||||
|
env = "sandbox"
|
||||||
|
app_name = "notify-api"
|
||||||
|
recursive_delete = true
|
||||||
|
}
|
||||||
|
|
||||||
|
module "database" {
|
||||||
|
source = "github.com/18f/terraform-cloudgov//database"
|
||||||
|
|
||||||
|
cf_user = var.cf_user
|
||||||
|
cf_password = var.cf_password
|
||||||
|
cf_org_name = local.cf_org_name
|
||||||
|
cf_space_name = local.cf_space_name
|
||||||
|
env = local.env
|
||||||
|
app_name = local.app_name
|
||||||
|
recursive_delete = local.recursive_delete
|
||||||
|
rds_plan_name = "micro-psql"
|
||||||
|
}
|
||||||
|
|
||||||
|
module "redis" {
|
||||||
|
source = "github.com/18f/terraform-cloudgov//redis"
|
||||||
|
|
||||||
|
cf_user = var.cf_user
|
||||||
|
cf_password = var.cf_password
|
||||||
|
cf_org_name = local.cf_org_name
|
||||||
|
cf_space_name = local.cf_space_name
|
||||||
|
env = local.env
|
||||||
|
app_name = local.app_name
|
||||||
|
recursive_delete = local.recursive_delete
|
||||||
|
redis_plan_name = "redis-dev"
|
||||||
|
}
|
||||||
|
|
||||||
|
module "csv_upload_bucket" {
|
||||||
|
source = "github.com/18f/terraform-cloudgov//s3"
|
||||||
|
|
||||||
|
cf_user = var.cf_user
|
||||||
|
cf_password = var.cf_password
|
||||||
|
cf_org_name = local.cf_org_name
|
||||||
|
cf_space_name = local.cf_space_name
|
||||||
|
recursive_delete = local.recursive_delete
|
||||||
|
s3_service_name = "${local.app_name}-csv-upload-bucket-${local.env}"
|
||||||
|
}
|
||||||
|
|
||||||
|
module "contact_list_bucket" {
|
||||||
|
source = "github.com/18f/terraform-cloudgov//s3"
|
||||||
|
|
||||||
|
cf_user = var.cf_user
|
||||||
|
cf_password = var.cf_password
|
||||||
|
cf_org_name = local.cf_org_name
|
||||||
|
cf_space_name = local.cf_space_name
|
||||||
|
recursive_delete = local.recursive_delete
|
||||||
|
s3_service_name = "${local.app_name}-contact-list-bucket-${local.env}"
|
||||||
|
}
|
||||||
17
terraform/sandbox/providers.tf
Normal file
17
terraform/sandbox/providers.tf
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
terraform {
|
||||||
|
required_version = "~> 1.0"
|
||||||
|
required_providers {
|
||||||
|
cloudfoundry = {
|
||||||
|
source = "cloudfoundry-community/cloudfoundry"
|
||||||
|
version = "0.15.5"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
backend "s3" {
|
||||||
|
bucket = "cg-6b759c13-6253-4a64-9bda-dd1f620185b0"
|
||||||
|
key = "api.tfstate.sandbox"
|
||||||
|
encrypt = "true"
|
||||||
|
region = "us-gov-west-1"
|
||||||
|
profile = "notify-terraform-backend"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
terraform/sandbox/variables.tf
Normal file
4
terraform/sandbox/variables.tf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
variable "cf_password" {
|
||||||
|
sensitive = true
|
||||||
|
}
|
||||||
|
variable "cf_user" {}
|
||||||
Reference in New Issue
Block a user