Skip to content

Commit

Permalink
Set up prod environment and account (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenyu authored Aug 16, 2024
1 parent c16edb5 commit d7240cd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
4 changes: 4 additions & 0 deletions infra/accounts/prod.288761770570.s3.tfbackend
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bucket = "platform-test-288761770570-us-east-1-tf"
key = "infra/account.tfstate"
dynamodb_table = "platform-test-288761770570-us-east-1-tf-state-locks"
region = "us-east-1"
7 changes: 4 additions & 3 deletions infra/app/app-config/prod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ module "prod_config" {
# These numbers are a starting point based on this article
# Update the desired instance size and counts based on the project's specific needs
# https://conchchow.medium.com/aws-ecs-fargate-compute-capacity-planning-a5025cb40bd0
service_cpu = 1024
service_memory = 4096
service_desired_instance_count = 3
# But for platform-test no need to use these values as they are more expensive than the defaults
# service_cpu = 1024
# service_memory = 4096
# service_desired_instance_count = 3

# Enables ECS Exec access for debugging or jump access.
# Defaults to `false`. Uncomment the next line to enable.
Expand Down
4 changes: 4 additions & 0 deletions infra/app/database/prod.s3.tfbackend
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bucket = "platform-test-288761770570-us-east-1-tf"
key = "infra/app/database/prod.tfstate"
dynamodb_table = "platform-test-288761770570-us-east-1-tf-state-locks"
region = "us-east-1"
4 changes: 4 additions & 0 deletions infra/app/service/prod.s3.tfbackend
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bucket = "platform-test-288761770570-us-east-1-tf"
key = "infra/app/service/prod.tfstate"
dynamodb_table = "platform-test-288761770570-us-east-1-tf-state-locks"
region = "us-east-1"
4 changes: 4 additions & 0 deletions infra/networks/prod.s3.tfbackend
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bucket = "platform-test-288761770570-us-east-1-tf"
key = "infra/networks/prod.tfstate"
dynamodb_table = "platform-test-288761770570-us-east-1-tf-state-locks"
region = "us-east-1"

0 comments on commit d7240cd

Please sign in to comment.