/terragrunt-tutorial

A simple example of using some of Terragrunts main features

Primary LanguageHCL

Terragrunt tutorial

This repo aims to give a tutorial around some of the features that Terragrunt offers, with examples for each.

What is Terragrunt?

Terragrunt is a thin wrapper that overlays Terraform that allows you to avoid having large amounts of repetition in your infrastructure as code, as well as helping with terraform modules and remote state.

Terraform is a great tool, but it does lend itself towards some duplication which can get harder to manage the larger your solution becomes.

Example structure

The main branch shows you the infrastructure pre-terragrunt.

The terragrunt branch shows you all of the examples, with updated README.md for details

Running the code

  1. Create your remote state backend:
> cd remote-state/
> terraform init
> terraform apply
  1. Create your example registry:
> cd registry/
> terraform init
> terraform apply
  1. Create your example storage:
> cd storage/
> terraform init
> terraform apply