I have a monorepo of terraform modules and wanted to use something like https://github.com/semantic-release/semantic-release to tag each module if/when it changes. How are people tackling this problem as previously I have used git SHAs but it feels really clunky.
d
Dylan Page
03/04/2024, 4:31 PM
At Previous Job we did exactly that, with our terragrunt mono-repo, except we don't have a monorepo of modules (I wish we did). Each module was its own repo.
s
Steve Wade
03/04/2024, 4:32 PM
yeh the monorepo for modules is really nice as it breeds consistency.
I don't think there is anything specific to terraform. The simplest solution I guess would be to have a github workflow that detects which paths were changed and run semantic-release on each of those using matrix strategy. But we also have modules in separate repos, which makes it much easier with the release process.