Compare Terragrunt with plain Terraform for a company with 30 stacks and 5 accounts.
IntermediateScenarioModules and Code Structure
Answer
Situation read → The pain is repeated backend and provider boilerplate and ordering between stacks.
What I'd do →
- Quantify what hurts today: copied
backend.tf,-var-filewrappers, dependency ordering. - If it's mostly boilerplate, Terraform plus a generated backend via
-backend-configand a small CI matrix is enough. - If dependency graphs across many stacks is the real pain, Terragrunt (
dependency,run-all) pays off.
Why → Every extra tool is something to learn, upgrade and debug; adopt it for a measured problem.
Interview tip → Neither is wrong; show the trade-off, not a preference.
More on Modules and Code Structure
When do you turn a block of resources into a module, and when do you leave it alone?BeginnerHow do you consume a community module like `terraform-aws-modules/vpc/aws` responsibly?BeginnerAn ECS service module needs the VPC and subnets created by a network module. How do you wire them together?IntermediateHow would you lay out a repo that deploys the same stack to dev, stage and prod?IntermediateHow do you release a shared module so consumers can upgrade at their own pace?IntermediateA module needs to deploy to a second region. Why does putting a provider block inside the module cause trouble?Advanced