terragruntArchived
1 messages
Terragrunt discussions
Archive: https://archive.sweetops.com/terragrunt/
nnsensealmost 3 years ago(edited)
Hi everyone, question: given that terragrunt requires you to set the sources for each module, how do you deal with module versions, even better across multiple accounts? Even just with one account I already have 4 cloudposse modules just for networking (2 labels, vpc and dynamic subnets), 2 for EKS (cluster and nodegroup), 1 for RDS and likely 3 or 4 for ECS, that's at least 10 version to keep track of, and there are already 4 of those accounts, having to keep track and update all those versions manually is not really ideal.. I have tried
terrafile, but - while it works great using pure terragrunt (setting the source into the terragrunt.hcl ) thanks to the find_in_parent_folders function which manages to get the module from the terrafile local "cache", it fails using local modules because there's no way to set a relative path as a source targeting the terrafile's modules path into the root of terragrunt from the .terragrunt-cache. I hope it makes sense. Anyway, no luck with terrafile, the only way would be to create these local modules as git repos, and reference everything in terragrunt.hcl files, I'm not really happy to do so, because that would mean to add git auth to these deployments (or make them public) and maintain those modules which I would do just because of this issue. How did you sort this issue?