This is a demo repository for my blog post.
- Install dev dependencies with Devbox
devbox shell- Initilize Terraform
cd infrastructure/src
terraform init --backend-config=../config/dev/us-east-1/backend.hclinfrastructure/config/dev/us-east-1/backend.hcl with appropriate values that fit your needs.
:warning: Make sure AWS credentials are present in your terminal
- Deploy infrastructure
terraform apply --var-file=../config/dev/us-east-1/vars.tfvarsinfrastructure/config/dev/us-east-1/vars.tfvars with appropriate values that fit your needs.
- Set env vars for the GitHub Actions Workflow
Modify the .github/workflows/ephemeral.yaml and .github/workflows/frontend.yaml files (the env section) with proper values and enjoy your ephemeral environment for frontend!