Hm, is it just me or does pulumi not support m6i i...
# aws
m
Hm, is it just me or does pulumi not support m6i instance types? https://github.com/pulumi/pulumi-aws/blob/8cdca73c8c37d91ad9bcdc2e6b616926df730ea2/provider/resources.go#L3170-L3186 I'm surprised, they have been out for a couple months
r
It's possible that list is not up to date but you can always pass it in as a string
m
ooh gotcha, thanks Kamal. I'll just have to tell TypeScript to ignore the error somehow?
r
what's the error? it should accept a union of string or InstanceType
there shouldn't be an error
m
Copy code
Type '"m6i.xlarge"' is not assignable to type 'Input<InstanceType> | undefined'.ts(2322)
nodegroup.d.ts(35, 5): The expected type comes from property 'instanceType' which is declared here on type 'ClusterNodeGroupOptions'
r
are you using a component? seems like it has incorrect types assigned.
m
Hmm, here's my full callsite
Copy code
const onDemandNodeGroup = cluster.createNodeGroup(`${prefix}-on-demand`, {
    instanceType: "m6i.xlarge",
    desiredCapacity: 3,
    minSize: 1,
    maxSize: 4,
    labels: { lifecycle: "on-demand" },
    instanceProfile: instanceProfile1,
    nodeAssociatePublicIpAddress: true,
    extraNodeSecurityGroups: [eks_sg],
    nodeSubnetIds: vpc.publicSubnetIds,
  });
cluster
is an
eks.Cluster
r
Yeah okay that's the bug. It should be something like
Copy code
instanceType?: pulumi.Input<string | aws.ec2.InstanceType>
Worth opening an issue because that type definition is out of date
m
Awesome. Well. At least we know what the problem is! Seems like in the short term I can do
Copy code
instanceType: "m6i.xlarge" as pulumi.Input<any>
But long term that type definition should be fixed
💯 2
Thanks so much for the help!
r
np!