microscopic-animal-41955
11/29/2021, 7:37 PMred-match-15116
11/29/2021, 7:38 PMmicroscopic-animal-41955
11/29/2021, 7:39 PMred-match-15116
11/29/2021, 7:40 PMmicroscopic-animal-41955
11/29/2021, 7:41 PMType '"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'
red-match-15116
11/29/2021, 7:42 PMmicroscopic-animal-41955
11/29/2021, 7:44 PMconst 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
red-match-15116
11/29/2021, 7:48 PMinstanceType?: pulumi.Input<string | aws.ec2.InstanceType>
microscopic-animal-41955
11/29/2021, 7:50 PMinstanceType: "m6i.xlarge" as pulumi.Input<any>
But long term that type definition should be fixedred-match-15116
11/29/2021, 7:51 PM