Closed tinder-tder closed 1 month ago
I just discover this command and want to try it in my mono repo but I discover this issue. I would like to add another thing in this kind of setup, it would be nice if we can specify a path to our modules without the need to have a git repository because in some cases the git repo contain more than iac code or we are mounting the code in a container with a docker compose/dagger/...
Is it something possible in the future or the git repository is mandatory ?
Yes, why there must be a modules
subfolder in git repo?
Similar issue - relative paths within the same repo fail saying "not a git repository". We would like to keep our modules in the same repository, just under terraform/modules
, not the root + modules
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.
Describe the solution you'd like Support module monorepos when using
catalog
command (example: https://github.com/gruntwork-io/terragrunt-infrastructure-modules-example/tree/master)Currently only polyrepos are supported or if the repo root has a
modules
subdir in it.running a catalog command against a mono repo without a path will fail because it it has no
.tf
files in the rootadding a full path to a module subdir will fail because its not a "git repo"
There should be a way to specify a repo root and automatically parse all subdirectories in the same way a
modules
dir would be processed.Describe alternatives you've considered reorganizing our current IAC module repo is doable but would involve updating all references elsewhere to match the new module path