Multi-Instance Root Modules
newsletter.masterpoint.io·7h·
Discuss: Hacker News
Flag this post

Hey folks,

I’m starting to put down my thoughts on why we recommend multi-instance root modules in more depth. As part of that, I’m thinking through the idea of what one of our decent sized client infra monorepos would look like if we ran it single-instance.

Spoiler: it doesn’t look great... But let’s dive in.

Here is background info about this multi-instance infra monorepo that we built for a client:

79 Root Modules (e.g. aws-backup, aurora-postgres, github-repositories, vpc, etc.)

Across those root modules we have ~54K lines of TF code (LOC), split across 691 OpenTofu files.

We have 238 instances of these root modules. Each of these instances is a workspace for a given root module, and this is what makes this project “multi-instance”.

Our average LOC per r…

Similar Posts

Loading similar posts...