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
- Host: GitHub
- URL: https://github.com/paddymorgan84/terragrunt-tutorial
- Owner: paddymorgan84
- Created: 2021-04-16T15:04:50.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-23T07:36:24.000Z (almost 5 years ago)
- Last Synced: 2025-10-14T14:06:06.272Z (4 months ago)
- Topics: infrastructure, terraform, terragrunt, tutorial
- Language: HCL
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```