News for hackers. Stuff that matters.
Re:Terraform Config Root Setups by bilekas on Sunday February 16, 2025 @07:23AM (#43067482)
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?

Re:Terraform Config Root Setups by moredhel on Sunday February 16, 2025 @07:36AM (#43067535)
I’ve always adopted the protobuf idea of growing an api interface.

Define a default which is backwards compatible.

Re:Terraform Config Root Setups by carty7 on Sunday February 16, 2025 @11:03AM (#43069039)
Thank you for sharing. I’ve heard this module conundrum a few times and creates a proliferation of forked modules.
Re:Terraform Config Root Setups by bilekas on Sunday February 16, 2025 @11:51AM (#43069437)
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