Skip to content

Commit

Permalink
Updated formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesiarmes committed Aug 7, 2024
1 parent b92a92a commit 6903bb6
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
56 changes: 28 additions & 28 deletions tofu/config/production/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ module "secrets" {
# tflint-ignore: terraform_module_pinned_source
source = "github.com/codeforamerica/tofu-modules/aws/secrets"

project = "illinois-getchildcare"
environment = "production"
service = "document-transfer"
project = "illinois-getchildcare"
environment = "production"
service = "document-transfer"

secrets = {
"consumer/aws" = {
description = "AWS Consumer API credentials for the Document Transfer Service."
description = "AWS Consumer API credentials for the Document Transfer Service."
recovery_window = 7
}
}
Expand All @@ -83,39 +83,39 @@ module "database" {

logging_key_arn = module.logging.kms_key_arn
secrets_key_arn = module.secrets.kms_key_arn
vpc_id = module.vpc.vpc_id
subnets = module.vpc.private_subnets
ingress_cidrs = module.vpc.private_subnets_cidr_blocks
vpc_id = module.vpc.vpc_id
subnets = module.vpc.private_subnets
ingress_cidrs = module.vpc.private_subnets_cidr_blocks

min_capacity = 2
max_capacity = 2
min_capacity = 2
max_capacity = 2
skip_final_snapshot = false
apply_immediately = true
apply_immediately = true
key_recovery_period = 30
snapshot_identifier = "arn:aws:rds:us-east-1:211125423013:cluster-snapshot:prod-cluster-pre-cmk"

project = "illinois-getchildcare"
environment = "production"
service = "document-transfer"
project = "illinois-getchildcare"
environment = "production"
service = "document-transfer"
}

# Deploy the Document Transfer service to a Fargate cluster.
module "document_transfer" {
# tflint-ignore: terraform_module_pinned_source
source = "github.com/codeforamerica/tofu-modules/aws/fargate_service"

project = "illinois-getchildcare"
project_short = "il-gcc"
environment = "prod"
service = "document-transfer"
service_short = "doc-trans"
domain = "illinois.document-transfer.cfa.codes"
vpc_id = module.vpc.vpc_id
private_subnets = module.vpc.private_subnets
public_subnets = module.vpc.public_subnets
logging_key_id = module.logging.kms_key_arn
container_port = 3000
image_tags_mutable = true
project = "illinois-getchildcare"
project_short = "il-gcc"
environment = "prod"
service = "document-transfer"
service_short = "doc-trans"
domain = "illinois.document-transfer.cfa.codes"
vpc_id = module.vpc.vpc_id
private_subnets = module.vpc.private_subnets
public_subnets = module.vpc.public_subnets
logging_key_id = module.logging.kms_key_arn
container_port = 3000
image_tags_mutable = true
enable_execute_command = true

# Only allow access from the web application and its workers.
Expand All @@ -124,12 +124,12 @@ module "document_transfer" {
environment_variables = {
RACK_ENV = "production"
OTEL_EXPORTER_OTLP_ENDPOINT = "http://localhost:4318"
DATABASE_HOST = module.database.cluster_endpoint
DATABASE_HOST = module.database.cluster_endpoint
}

environment_secrets = {
DATABASE_PASSWORD = "${module.database.secret_arn}:password"
DATABASE_USER = "${module.database.secret_arn}:username"
DATABASE_PASSWORD = "${module.database.secret_arn}:password"
DATABASE_USER = "${module.database.secret_arn}:username"
ONEDRIVE_CLIENT_ID = "onedrive:client_id"
ONEDRIVE_CLIENT_SECRET = "onedrive:client_secret"
ONEDRIVE_TENANT_ID = "onedrive:tenant_id"
Expand Down
32 changes: 16 additions & 16 deletions tofu/config/staging/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ module "secrets" {
# tflint-ignore: terraform_module_pinned_source
source = "github.com/codeforamerica/tofu-modules/aws/secrets"

project = "illinois-getchildcare"
environment = "staging"
service = "document-transfer"
project = "illinois-getchildcare"
environment = "staging"
service = "document-transfer"

secrets = {
"consumer/aws" = {
description = "AWS Consumer API credentials for the Document Transfer Service."
description = "AWS Consumer API credentials for the Document Transfer Service."
recovery_window = 7
}
}
Expand All @@ -84,19 +84,19 @@ module "database" {

logging_key_arn = module.logging.kms_key_arn
secrets_key_arn = module.secrets.kms_key_arn
vpc_id = module.vpc.vpc_id
subnets = module.vpc.private_subnets
ingress_cidrs = module.vpc.private_subnets_cidr_blocks
vpc_id = module.vpc.vpc_id
subnets = module.vpc.private_subnets
ingress_cidrs = module.vpc.private_subnets_cidr_blocks

min_capacity = 2
max_capacity = 2
min_capacity = 2
max_capacity = 2
skip_final_snapshot = true
apply_immediately = true
apply_immediately = true
key_recovery_period = 7

project = "illinois-getchildcare"
environment = "staging"
service = "document-transfer"
project = "illinois-getchildcare"
environment = "staging"
service = "document-transfer"
}

# Deploy the Document Transfer service to a Fargate cluster.
Expand Down Expand Up @@ -125,12 +125,12 @@ module "document_transfer" {
environment_variables = {
RACK_ENV = "staging"
OTEL_EXPORTER_OTLP_ENDPOINT = "http://localhost:4318"
DATABASE_HOST = module.database.cluster_endpoint
DATABASE_HOST = module.database.cluster_endpoint
}

environment_secrets = {
DATABASE_PASSWORD = "${module.database.secret_arn}:password"
DATABASE_USER = "${module.database.secret_arn}:username"
DATABASE_PASSWORD = "${module.database.secret_arn}:password"
DATABASE_USER = "${module.database.secret_arn}:username"
ONEDRIVE_CLIENT_ID = "onedrive:client_id"
ONEDRIVE_CLIENT_SECRET = "onedrive:client_secret"
ONEDRIVE_TENANT_ID = "onedrive:tenant_id"
Expand Down

0 comments on commit 6903bb6

Please sign in to comment.