An open API service indexing awesome lists of open source software.

https://github.com/paddymorgan84/terragrunt-tutorial

A simple example of using some of Terragrunts main features
https://github.com/paddymorgan84/terragrunt-tutorial

infrastructure terraform terragrunt tutorial

Last synced: 4 months ago
JSON representation

A simple example of using some of Terragrunts main features

Awesome Lists containing this project

README

          

# 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](https://terragrunt.gruntwork.io/) is a thin wrapper that overlays [Terraform](https://www.terraform.io/) 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](https://github.com/paddymorgan84/terragrunt-tutorial/tree/main) shows you the infrastructure pre-terragrunt.

The [terragrunt branch](https://github.com/paddymorgan84/terragrunt-tutorial/tree/terragrunt) shows you all of the examples, with updated `README.md` for details

## Running the code

1. Create your remote state backend:

```bash
> cd remote-state/
> terraform init
> terraform apply
```

2. Create your example registry:

```bash
> cd registry/
> terraform init
> terraform apply
```

3. Create your example storage:

```bash
> cd storage/
> terraform init
> terraform apply
```