Skip to content

bingtsingw/boilerplate-terraform

Repository files navigation

boilerplate-terraform

This is a boilerplate using terraform with terragrunt.

Features

  • dotenv-like variables management.
  • remote backend with alicloud oss.
  • built-in Makefile to simplify daily work.

Usage

# 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 apply

Explanation for Dotenv

In 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.

About

A simple terraform boilerplate with terragrunt

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •