Skip to content

Commit

Permalink
production iac now matches the running environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed May 31, 2024
1 parent b3a7909 commit 5fd8619
Show file tree
Hide file tree
Showing 29 changed files with 21 additions and 523 deletions.
1 change: 1 addition & 0 deletions tofu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ These should be deployed in the following order and generally will only be updat
- TF_VAR_name_prefix
- TF_VAR_environment
- TF_VAR_region
- TF_VAR_frontend_url

1. `cd tofu/environments/<env>/services/backend-infra`
2. `terragrunt init`
Expand Down
1 change: 1 addition & 0 deletions tofu/environments/prod/data-store/database/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ inputs = {
region = local.region
vpc = dependency.vpc.outputs.vpc_id
subnet_group = dependency.vpc.outputs.database_subnet_group
database_subnets = dependency.vpc.outputs.database_subnets
elasticache_security_group = dependency.cache.outputs.security_group_id
backend_security_group = dependency.backend.outputs.security_group_id
tags = local.tags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@ inputs = {
logs_endpoint_security_group = dependency.vpc.outputs.logs_endpoint_security_group
database_subnet_cidrs = dependency.vpc.outputs.database_subnet_cidrs
ssl_cert = "arn:aws:acm:us-east-1:768512802988:certificate/4a53e27b-0cd3-4855-a13f-5bac50015e43"
frontend_url = get_env("TF_VAR_frontend_url")
tags = local.tags
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ inputs = {
backend_id = dependency.backend.outputs.alb_id
backend_dns_name = dependency.backend.outputs.dns_name
x_allow_secret = dependency.backend.outputs.x_allow_secret
frontend_url = get_env("TF_VAR_frontend_url")
}
19 changes: 0 additions & 19 deletions tofu/environments/production/data-store/cache/.terraform.lock.hcl

This file was deleted.

51 changes: 0 additions & 51 deletions tofu/environments/production/data-store/cache/terragrunt.hcl

This file was deleted.

This file was deleted.

62 changes: 0 additions & 62 deletions tofu/environments/production/data-store/database/terragrunt.hcl

This file was deleted.

10 changes: 0 additions & 10 deletions tofu/environments/production/environment.hcl

This file was deleted.

4 changes: 0 additions & 4 deletions tofu/environments/production/environment_vars.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions tofu/environments/production/network/vpc/.terraform.lock.hcl

This file was deleted.

31 changes: 0 additions & 31 deletions tofu/environments/production/network/vpc/terragrunt.hcl

This file was deleted.

This file was deleted.

52 changes: 0 additions & 52 deletions tofu/environments/production/services/backend-infra/terragrunt.hcl

This file was deleted.

Loading

0 comments on commit 5fd8619

Please sign in to comment.