wide-finland-25364
01/27/2022, 4:45 PMdelightful-gigabyte-39334
01/27/2022, 4:48 PMwide-finland-25364
01/27/2022, 4:49 PMus-west-2
. I selected the region when I created the project. Do I have to specify in the code as well?delightful-gigabyte-39334
01/27/2022, 4:50 PMwide-finland-25364
01/27/2022, 4:51 PMtags: { name: current_cluster_name + "-cluster" },
vpcId: vpc.id,
publicSubnetIds: vpc.publicSubnetIds,
privateSubnetIds: vpc.privateSubnetIds,
skipDefaultNodeGroup: true,
instanceRoles: [role2],
instanceType: "t3a.small",
desiredCapacity: 2,
minSize: 2,
maxSize: 4,
nodeRootVolumeSize: 50,
createOidcProvider: true,
userMappings: userMappings
should I add anything else here?instanceType
and I don't see m6a. hmm...delightful-gigabyte-39334
01/27/2022, 4:53 PMwide-finland-25364
01/27/2022, 4:54 PMimport * as eks from "@pulumi/eks";
eks.Cluster
and eks.ClusterOptions
delightful-gigabyte-39334
01/27/2022, 4:54 PMbored-table-20691
01/27/2022, 4:59 PMwide-finland-25364
01/27/2022, 5:16 PMm6a.large
and every other m6a instances(property) ClusterOptions.instanceType?: pulumi.Input<aws.ec2.InstanceType> | undefined
The instance type to use for the cluster's nodes. Defaults to "t2.medium".
Type '"m6a.large"' is not assignable to type 'Input<InstanceType> | undefined'. Did you mean '"m5a.large"'?ts(2820)
cluster.d.ts(251, 5): The expected type comes from property 'instanceType' which is declared here on type 'ClusterOptions'
faint-table-42725
01/27/2022, 5:19 PM// @ts-ignore
)bored-table-20691
01/27/2022, 5:20 PMfaint-table-42725
01/27/2022, 5:21 PMwide-finland-25364
01/27/2022, 5:21 PM@ts-ignore
. Very interesting.faint-table-42725
01/27/2022, 5:21 PMpulumi/eks
to allow for aws.ec2.InstanceType | string
to avoid this in the future when the enum doesn’t have everythingbored-table-20691
01/27/2022, 5:23 PMpulumi-eks
, it seems to accept this as aws.ec2.InstanceType
, and then the ec2
package does define it as string | enum.InstanceType
, so I would think it woudl workfaint-table-42725
01/27/2022, 5:25 PMbored-table-20691
01/27/2022, 5:26 PMec2
package, I was looking at the wrong place.faint-table-42725
01/27/2022, 5:26 PMbored-table-20691
01/27/2022, 5:27 PMinstanceType?: pulumi.Input<string | enums.ec2.InstanceType>;
This is an example from aws.ec2.InstanceState
faint-table-42725
01/27/2022, 5:27 PMbored-table-20691
01/27/2022, 5:27 PMfaint-table-42725
01/27/2022, 5:27 PMbored-table-20691
01/27/2022, 5:35 PM