What is “terragrunt” Package?
Terragrunt is a thin wrapper for Terraform that provides extra tools for keeping your Terraform configurations DRY, working with multiple Terraform modules, and managing remote state. Thin wrapper for Terraform e.g. for locking state.In this post you will learn how to install terragrunt on mac with brew.
For more details: https://github.com/gruntwork-io/terragrunt
Installation
- Open Terminal by pressing
command+space
then type terminal and hitEnter
key. - Install homebrew first.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
- Install terragrunt.
brew install terragrunt
Terragrunt supports the following use cases:
- Keep your Terraform code DRY
- Keep your remote state configuration DRY
- Keep your CLI flags DRY
- Execute Terraform commands on multiple modules at once
- Work with multiple AWS accounts
Now, use terragrunt!
Create VPC subnet route-table ec2 using terraform
Watch the below video on “Create AWS Infrastructure With Terraform | VPC | Subnet | EC2 | Route Table | Internet Gateway”