Is it possible to create EKS Cluster in one stack,...
# aws
r
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 😅
Copy code
// 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
You'd really want to be using different projects for this. One for the cluster, and a different one for the node groups.
r
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