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 wants to add runtime feature control and production safety protections to their existing Terragrunt modules. Generate the following configurations:
Add a feature flag enable_monitoring to a module at infrastructure/prod/app/terragrunt.hcl that:
false--feature enable_monitoring=true), adds monitoring resources to the inputsThe team lead suggested writing: default = local.env.locals.enable_monitoring — this is wrong. Generate the correct approach.
The production database module (infrastructure/prod/rds/terragrunt.hcl) should:
destroy operations by defaultprevent_destroy = trueAn existing module has skip = true that should be updated to the modern exclude block syntax. The original intent was to skip all operations on this module.
Generate the HCL snippets for:
feature block with a static default (explain why the suggested local reference fails)exclude block for the prod/rds moduleskip = trueAlso show the CLI command and environment variable approaches to activate the feature flag at runtime.