https://pulumi.com logo
#general
Title
# general
m

melodic-secretary-404

02/14/2024, 1:48 PM
what am i doing wrong
s

salmon-account-74572

02/14/2024, 3:33 PM
Can you try using the latest version of the EKS package? v1.0.3 is a tad old. The latest release is v2.2.1, but just about anything after v2.0.0 is fine. Are you providing both public subnets and private subnets to
subnetIds
?
m

melodic-secretary-404

02/14/2024, 3:46 PM
so the vpc i have only has one subnet a
/16
s

salmon-account-74572

02/14/2024, 4:09 PM
Hmm...I'm not sure if that will be an issue or not. Try the newer version of the EKS package, and meanwhile I'll ask internally about using a single subnet.
m

melodic-secretary-404

02/14/2024, 4:13 PM
ok cool thanks
one thing i should mention it was the ai that generated that old version
still get
Copy code
Cannot assign '{vpcId: string, subnetIds: string, instanceType: string, desiredCapacity: number, minSize: number, maxSize: number, createOidcProvider: boolean, version: string}' to 'eks:index:Cluster':
s

salmon-account-74572

02/15/2024, 4:40 PM
I’m still trying to track down if a single subnet will be an issue. Can you try using
publicSubnetIds
(or
privateSubnetIds
, whichever is applicable for your single subnet) instead of
subnetIds
? That’s the approach we use in our YAML template for EKS: https://github.com/pulumi/templates/tree/master/kubernetes-aws-yaml