Multi-Cloud (AWS, Azure and GCP) IaC with Terraform empowered with Terragrunt
- AWS Account and generated programmatic credentials.
- GCP Account and generated programmatic credentials.
- Azure Account and generated programmatic credentials.
- CloudFlare account, domain and generated API Token.
- Export all programmatic credentials for all clouds \ systems to your environment.
- Install dependencies with python pip:
pip install -r requirements.txt
Generate \ update the target environment
- New environment creation
- Existing environment update
ENV=preprod
cookiecutter .generator/ -f --config-file $ENV/.cookiecutter.yaml
Apply core stack (or any other)
ENV=preprod
cd $ENV/core
terragrunt init
terragrunt apply
ENV=preprod
cd $ENV
terragrunt plan-all
terragrunt apply-all
fqdn=terraform-multicloud-demo-$ENV.dovnar-alexander.xyz
.data/check.sh $fqdn
Apply all stacks with Core
ENV=preprod
cd $ENV
terragrunt destroy-all