# NodegroupAmiType

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-v2/lib/managed-nodegroup.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-eks-v2/lib/managed-nodegroup.ts#L40)
- Type last changed: v2.240.0 · 23 Feb 2026

## 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,
});
```

## 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`](/v2/docs/aws-cdk-lib.aws_eks_v2.NodegroupOptions).amiType
