https://pulumi.com logo
r

rapid-monitor-13579

07/31/2023, 1:38 PM
Hi Everyone! I'm on the process to restructure my HomeLab from a monolith pulumi project to a micro stack monorepo using NX. Aside of the pulumi cli typescript limitations (https://github.com/pulumi/pulumi/issues/8787) so far, so good. I took this path to reduce the deployment times since i can only deploy the stack that was affected on the PR, so I really happy with the result. The only problem comes with my personal account licence, I needed create an organization for this project so I can group the all micro-stacks under the same parent so the
StackReference
make sense. like
homelab/${microstack}/env
. There is a way to link this Organization to use my personal account licence?
h

hallowed-photographer-31251

07/31/2023, 8:43 PM
hi catriel! i have a very similar setup for my own homelab 🙂 (micro stacks, but no NX yet)
I needed create an organization for this project so I can group the all micro-stacks under the same parent so the
StackReference
make sense.
i’m curious what you mean by this. in my case, i have a stack like
parent/env
for my cluster, and the children
app1/env
,
app2/env
, etc. each have a reference to
parent/env
. so at least in my case the org-level grouping wasn’t needed, although i could understand why it would be helpful (especially if you have other non-homelab stacks in your account)
r

rapid-monitor-13579

08/03/2023, 2:20 AM
Hi @hallowed-photographer-31251. I glad to hear that I'm not the only one that uses Pulumi for local environments 😁. Yes, I have another projects on my account and I want keep this isolated because I don't wanna mess the structure adding prefix on every project like
homelab_postgresql
and also there is no way to limit which projects can make a stack reference.
h

hallowed-photographer-31251

08/03/2023, 7:32 PM
re: keeping things isolated, you can add a stack tag to your homelab things. then in UI’s stack list there’s a “group by” menu in the upper left that can help you group those things together.