Migrating from Terraform to Terragrunt
October 7, 2020 | Technical Blog
At Bestmile, we are using Terraform to represent our AWS infrastructure as code. As our infrastructure evolved, our Terraform code became more and more tangled in order to cope with the growth.
The maintainability of our Terraform code was becoming an issue and so was its efficiency.
Terraform is great, but it needs a few additions to make it shine. This is where Terragrunt comes into play.
Terragrunt is a wrapper for Terraform that extends its functionality and it also addresses some of its limitations. Terragrunt wraps the Terraform code by using HCL (HashiCorp Configuration Language) code, so Terragrunt will run your Terraform code based on how you define the HCL code. It is this HCL code that brings the extra benefits described below and makes Terragrunt really a wonderful tool.