Complete terragrunt toolkit with generation and validation capabilities
93
93%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
A team needs a new multi-environment AWS infrastructure setup for a web platform. Generate all the Terragrunt configuration files for:
Environments: dev and prod
Modules per environment: vpc and app (app depends on vpc)
Architecture Pattern: Pattern A (multi-env agnostic root)
State bucket: webplatform-tfstate-{account_id} (use a placeholder)
Region: ap-southeast-1
Dev environment:
10.0.0.0/16t3.smallProd environment:
10.1.0.0/16m5.largeprevent_destroy = trueGenerate the complete file tree and contents for all files:
infrastructure/root.hclinfrastructure/dev/env.hclinfrastructure/dev/vpc/terragrunt.hclinfrastructure/dev/app/terragrunt.hclinfrastructure/prod/env.hclinfrastructure/prod/vpc/terragrunt.hclinfrastructure/prod/app/terragrunt.hclShow the directory tree first, then each file's content. Follow Pattern A: root.hcl must NOT reference env.hcl. Child modules read env.hcl directly.