This folder contains the infrastructure (IaC) for Spring + React App project.
Follow these steps to deploy the infrastructure using Terraform:
cp .env.sample .envEdit .env and override necessary variables according to your environment (e.g., AWS credentials, database credentials).
source ./bin/load_env.shThis script will export all environment variables defined in .env for the current shell session.
Choose the workspace you want to deploy (e.g., dev or prod):
terraform workspace select devIf the workspace doesn't exist yet, create it:
terraform workspace new devRun Terraform apply with the corresponding tfvars file:
terraform apply -var-file=./envs/dev.tfvarsFor production:
terraform apply -var-file=./envs/prod.tfvars
