You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(catalog): add discovery block for custom module paths
Add experimental catalog-discovery feature allowing custom module
directory paths via discovery blocks in catalog configuration.
Previously, catalog only searched the hardcoded "modules/" directory.
This change allows repositories with non-standard layouts (e.g.,
"tf-modules/", "infrastructure/") to be used in the catalog.
Changes:
- Add discovery block support to catalog configuration
- Add ModulePaths field to config.Discovery struct
- Add Repo.WithModulePaths() functional option for custom paths
- Support multiple discovery blocks with different configurations
- Maintain backward compatibility (naked URLs use default "modules/")
- Update tests and documentation
Closes#4632
Copy file name to clipboardExpand all lines: docs-starlight/src/content/docs/04-reference/04-experiments.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ The following experiments are available:
70
70
-[symlinks](#symlinks)
71
71
-[cas](#cas)
72
72
-[filter-flag](#filter-flag)
73
+
-[catalog-discovery](#catalog-discovery)
73
74
74
75
### symlinks
75
76
@@ -186,6 +187,47 @@ When this experiment stabilizes, the following queue control flags will be depre
186
187
187
188
The current plan is to continue to support the flags as aliases for particular `--filter` patterns.
188
189
190
+
#### `catalog-discovery`
191
+
192
+
Support for configurable module discovery paths in Terragrunt Catalog.
193
+
194
+
#### `catalog-discovery` - What it does
195
+
196
+
By default, Terragrunt Catalog searches for modules only in the `modules/` directory of catalog repositories. This experiment enables the `discovery` block in catalog configuration, allowing you to specify custom directories where modules should be discovered. This is useful when your catalog repositories organize modules in non-standard directories (e.g., `tf-modules/`, `infrastructure/`, or organization-specific paths).
0 commit comments