Multi-Instance Root Modules
newsletter.masterpoint.io·12w·
Discuss: Hacker News

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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help