NodegroupAmiType Enum
The AMI type for your node group.
GPU instance types should use the AL2_x86_64_GPU AMI type, which uses the Amazon EKS-optimized Linux AMI with GPU support or the BOTTLEROCKET_ARM_64_NVIDIA or BOTTLEROCKET_X86_64_NVIDIA AMI types, which uses the Amazon EKS-optimized Linux AMI with Nvidia-GPU support.
Non-GPU instances should use the AL2_x86_64 AMI type, which uses the Amazon EKS-optimized Linux AMI.
| Source | aws-eks/lib/managed-nodegroup.ts |
|---|---|
| Type last changed |
Example
ts
declare const cluster: eks.Cluster;
// Pin existing node groups to AL2 explicitly before enabling the flag.
cluster.addNodegroupCapacity('workers', {
instanceTypes: [new ec2.InstanceType('m5.large')],
amiType: eks.NodegroupAmiType.AL2_X86_64,
});
python
# cluster: eks.Cluster
# Pin existing node groups to AL2 explicitly before enabling the flag.
cluster.add_nodegroup_capacity("workers",
instance_types=[ec2.InstanceType("m5.large")],
ami_type=eks.NodegroupAmiType.AL2_X86_64
)
java
Cluster cluster;
// Pin existing node groups to AL2 explicitly before enabling the flag.
cluster.addNodegroupCapacity("workers", NodegroupOptions.builder()
.instanceTypes(List.of(new InstanceType("m5.large")))
.amiType(NodegroupAmiType.AL2_X86_64)
.build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
Cluster cluster;
// Pin existing node groups to AL2 explicitly before enabling the flag.
cluster.AddNodegroupCapacity("workers", new NodegroupOptions {
InstanceTypes = new [] { new InstanceType("m5.large") },
AmiType = NodegroupAmiType.AL2_X86_64
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var cluster Cluster
// Pin existing node groups to AL2 explicitly before enabling the flag.
cluster.AddNodegroupCapacity(jsii.String("workers"), &NodegroupOptions{
InstanceTypes: []InstanceType{
ec2.NewInstanceType(jsii.String("m5.large")),
},
AmiType: eks.NodegroupAmiType_AL2_X86_64,
})
Members
| Member | Description |
|---|---|
AL2_X86_64 | Amazon Linux 2 (x86-64). |
AL2_X86_64_GPU | Amazon Linux 2 with GPU support. |
AL2_ARM_64 | Amazon Linux 2 (ARM-64). |
BOTTLEROCKET_ARM_64 | Bottlerocket Linux (ARM-64). |
BOTTLEROCKET_X86_64 | Bottlerocket (x86-64). |
BOTTLEROCKET_ARM_64_NVIDIA | Bottlerocket Linux with Nvidia-GPU support (ARM-64). |
BOTTLEROCKET_X86_64_NVIDIA | Bottlerocket with Nvidia-GPU support (x86-64). |
BOTTLEROCKET_ARM_64_FIPS | Bottlerocket Linux (ARM-64) with FIPS enabled. |
BOTTLEROCKET_X86_64_FIPS | Bottlerocket (x86-64) with FIPS enabled. |
WINDOWS_CORE_2019_X86_64 | Windows Core 2019 (x86-64). |
WINDOWS_CORE_2022_X86_64 | Windows Core 2022 (x86-64). |
WINDOWS_FULL_2019_X86_64 | Windows Full 2019 (x86-64). |
WINDOWS_FULL_2022_X86_64 | Windows Full 2022 (x86-64). |
AL2023_X86_64_STANDARD | Amazon Linux 2023 (x86-64). |
AL2023_X86_64_NEURON | Amazon Linux 2023 with AWS Neuron drivers (x86-64). |
AL2023_X86_64_NVIDIA | Amazon Linux 2023 with NVIDIA drivers (x86-64). |
AL2023_ARM_64_NVIDIA | Amazon Linux 2023 with NVIDIA drivers (ARM-64). |
AL2023_ARM_64_STANDARD | Amazon Linux 2023 (ARM-64). |
Referenced by
NodegroupOptions.amiTypeami_typeamiTypeAmiTypeAmiType