Skip to main content
InterviewHubPRO
Section Overview
Q19

Question 19 of 50

Part 2: Modules, Multi-Environment & GitOps (16 - 30)

38%
Terraform & IaC (50 Qs)•Part 2: Modules, Multi-Environment & GitOps (16 - 30)

What is Terragrunt, and how does it DRY up Terraform configurations?

junior LevelMost AskedFormsCI/CD & DevOpsTerraform & IaC

In Simple Words: Terragrunt is a thin wrapper around Terraform that:

  1. Keeps Backends DRY: Defines a single root terragrunt.hcl backend configuration; all sub-environments inherit it without copy-pasting.
  2. Promotes Immutable Modules: Enforces passing input variables directly to versioned Git modules without duplicate boilerplate.
  3. Dependency Orchestration: Supports dependency blocks to orchestrate multi-module applies in strict topological order (terragrunt run-all apply).