Hacker News new | ask | show | jobs
by bilekas 488 days ago
The method I go to almost always is

> Multi-Environment Setup with Shared Modules

But the con of saying versioning is tricky across modules is damn near impossible to reliably manage.. especially because if I'm introducing a new variable to a shared module A) I need to also add this variable in the inputs of each of the environment.

I haven't found a way to manage multiple versions of the modules across environments if all using the same shared modules. Is it even possible?

2 comments

I’ve always adopted the protobuf idea of growing an api interface.

Define a default which is backwards compatible.

Thank you for sharing. I’ve heard this module conundrum a few times and creates a proliferation of forked modules.
I mean when it becomes a bit larger and harder to manage so many modules we would split them into standalone repos which could be versiones And deployed. Then in the tfstate file get the env arns for example, but the complexity in the pipeline and environment becomes a bit more difficult to maintain strictly. It's tough