Based on the following references:
- https://github.com/gruntwork-io/terragrunt-infrastructure-live-example
- https://github.com/antonbabenko/terragrunt-reference-architecture
- https://github.com/silazare/terraform-aws-example
Prerequisites:
- terraform >= 0.13
- terragrunt >= 0.27
Pre-commit installation:
git secrets --install
pre-commit install -f
pre-commit run -a
- Create and use
.envrc
file with Staging AWS account id from example
cd staging
cp .envrc.example .envrc
source .envrc
- Create Infra
make apply
- Destroy Infra
make destroy
- Create and use
.envrc
file with Production AWS account id from example
cd production
cp .envrc.example .envrc
source .envrc
- Create Infra
make apply
- Destroy Infra
make destroy