https://pulumi.com logo
Title
c

crooked-laptop-67565

04/17/2023, 10:30 PM
@pulumi/eks
doesn't seem to have a way to get an existing cluster, and
@pulumi/aws
doesn't seem to know about managed node groups?
s

steep-toddler-94095

04/17/2023, 10:34 PM
this doesn't address your issue directly, but I use
NodeGroup
instead of
ManagedNodeGroup
. I don't know what the difference is between them, but
NodeGroup
does create an EKS managed node group and i think you'll avoid this issue you're getting if you use it instead
c

crooked-laptop-67565

04/17/2023, 10:37 PM
Thanks, that's helpful. Now that I read the docs again, I think I had misunderstood this part
To opt-in to using Managed Node Groups, the raw `aws.eks.NodeGroup` building block is available. However, we’ve enlightened the EKS package with the
eks.Cluster.createManagedNodeGroup
function to make it easier and to integrate with cluster provisioning.
I think by "enlightened" they just mean "you can do this from the
@pulumi/eks
package"
I had interpreted "enlightened" as "there's something better about using
@pulumi/eks
"
s

steep-toddler-94095

04/17/2023, 10:41 PM
oh right, that makes sense. The
NodeGroup
I use is from
@pulumi/aws/eks
but
ManagedNodeGroup
is from
@pulumi/eks
The
@pulumi/eks
package is supposed to have a "better" API instead of a 1:1 match of the cloud provider API that
@pulumi/aws/eks
has. It's true to some extent, but if you are mix/matching the packages you can run into the issues you just saw here.
c

crooked-laptop-67565

04/17/2023, 10:50 PM
Yeah I am often a bit confused about which package I'm supposed to use, between
aws
and
eks
and
awsx
and then there's the "native" one... I will have a go with
aws.eks.NodeGroup
, thank you for your help!