https://pulumi.com logo
Title
r

rhythmic-whale-48997

11/09/2022, 7:54 AM
Is it possible to create EKS Cluster in one stack, and then have different stacks for different NodeGroups? Something like this. I tried it, but there is always something missing 😅
// stack1
export const cluster = new eks.Cluster("eks-cluster", { ... });

// stack2
const sR = new pulumi.StackReference("stack1");
const cluster = (sR.requireOutput("cluster") as unknown) as eks.Cluster;
l

little-cartoon-10569

11/09/2022, 7:21 PM
You'd really want to be using different projects for this. One for the cluster, and a different one for the node groups.
r

rhythmic-whale-48997

11/10/2022, 7:38 AM
I'm using 2 different projects. It doesn't work. Maybe the code example is missing stuff, but in the end 2 stack each in its own project