✨ New Features
--reading flag added to the find command
The find command now supports the --reading flag, which allows you to discover the shared configurations read by units and stacks when using the --json format.
$ terragrunt find --reading --json
[
{
"type": "unit",
"path": "aws-account-1",
"reading": [
"aws-data.yml"
]
},
{
"type": "unit",
"path": "aws-account-2",
"reading": [
"aws-data.yml"
]
},
{
"type": "unit",
"path": "gcp-project-1",
"reading": [
"gcp-data.hcl"
]
}
]You can use this information to drive custom logic in your workflows based on the changes related to particular files.
e.g.
$ terragrunt find --reading --json | jq '[.[] | select(.reading[]? | contains("aws-data.yml"))| .path]'
[
"aws-account-1",
"aws-account-2"
]
$ terragrunt find --reading --json | jq '[.[] | select(.reading[]? | contains("gcp-data.hcl"))| .path]'
[
"gcp-project-1"
]You can learn more about the --reading flag in the find documentation.
🐛 Bug Fixes
Empty stacks no longer throw errors
Previously, a bug in the logic used for making sure that users didn’t accidentally run on empty stacks resulted in users getting a non-zero exit code when all units in a stack were excluded (e.g. via the exclude block).
That bug has been fixed.
Dependency outputs can now be used in generate blocks
Previously, a bug in the way HCL parsing was done during discovery resulted in errors being thrown for users when dependency outputs were used in generate blocks. That error has since been resolved.
That bug has been fixed.
What's Changed
- feat: Adding reading support in
findby @yhakbar in #5002 - fix: Removing filter enabled check on empty stacks by @yhakbar in #4992
- fix: reference of dependency outputs in generate by @denis256 in #4994
- docs: Documenting new
-readingflag forfindby @yhakbar in #5003 - docs: Fixing --source-map explanation by @atheiman in #4997
- docs: Fixing
Filtersdocs by @yhakbar in #4996 - chore: Tracking DAG nodes in components by @yhakbar in #4998
- chore: Tracking reads in components by @yhakbar in #5000
- chore: Updating language in discovery commands by @yhakbar in #5001
- chore: Using a standard shell string parsing library instead of handling it ourselves by @yhakbar in #4991
- build(deps): bump the js-dependencies group across 1 directory with 5 updates by @dependabot[bot] in #4993
- build(deps): bump vite from 6.3.6 to 6.4.1 in /docs-starlight by @dependabot[bot] in #4999
New Contributors
Full Changelog: v0.91.2...v0.91.3