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 hit Enter 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:

    1. Keep your Terraform code DRY
    2. Keep your remote state configuration DRY
    3. Keep your CLI flags DRY
    4. Execute Terraform commands on multiple modules at once
    5. 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”

 

Install and setup Terraform. Launch EC2 Instance on AWS Using Terraform