terragrunt-generator¶
terragrunt-generator generates terragrunt.hcl configuration files —
with documented inputs — from the variables exposed by a Terraform module.
Point it at a module (a git repository or a local directory), tell it where
to look up values, and it emits a ready-to-edit Terragrunt manifest plus an
optional YAML config skeleton.
What it does¶
- Reads the
variableblocks of a Terraform module. - Splits them into mandatory, optional and nullable inputs.
- Renders a
terragrunt.hclwithinclude,locals,terraformandinputsblocks wired to ayamldecode-based config lookup. - Optionally writes (and merges) per-environment
config.<env>.yamlfiles.
At a glance¶
terragrunt-generator \
-u https://github.com/terraform-google-modules/terraform-google-project-factory.git \
-v v14.2.1 \
-l 'project'
See Installation to get the CLI, Usage for the full option reference and worked examples, and Stability & deprecation for the versioning contract.
The source lives on GitHub; releases are automated from Conventional Commits by multicz.