build_config
Generate Terragrunt HCL configuration for remote_state backends, provider generation, dependencies, hooks, inputs, and CI/CD pipelines, with dry-run preview and diffing against existing files.
Instructions
Generate or write Terragrunt HCL configuration files (terragrunt.hcl). Use cases: remote_state backends (S3, GCS, Azure), provider generation, dependency blocks, hooks, inputs, and cicd (CI/CD-ready config for GitHub Actions, GitLab, Azure DevOps).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path | |
| tier | No | Template tier | essential |
| write | No | Write to disk | |
| backend | No | For remote_state, the backend type (s3, azurerm, gcs). For cicd, the platform (github-actions, gitlab, azure-devops). | |
| content | No | HCL content to write | |
| options | No | Template variables | |
| preview | No | Dry-run: never write; return what would be written plus a diff and overwrite/backup info | |
| useCase | No | Use case | |
| overwrite | No | Allow overwrite | |
| compareWith | No | Path of an existing file to diff the result against (defaults to path in preview mode) | |
| createBackup | No | Create backup | |
| createParentDirs | No | Create parent dirs | |
| strictValidation | No | Strict validation |