This is a boilerplate using terraform with terragrunt.
- dotenv-like variables management.
- remote backend with alicloud oss.
- built-in
Makefileto simplify daily work.
# set environment variables in .env.yml file
cp .env.yml.example .env.yml
# run make command
make module-clone MODULE_NAME=xxx
make plan
make applyIn fact, terraform or terragrunt does not support dotenv, so we cannot use a .env file directly.
Instead, we can borrow the idea behind dotenv. Just parse a .env.yml file with terragrunt's yamldecode function to simulate this feature.