Commit 7379a4b
authored
chore(eks): add AL2023_ARM_64_NVIDIA AMI type for managed node groups (#35578)
**Issue**: #35571
**Reason for this change:**
AWS EKS now supports Amazon Linux 2023 with NVIDIA drivers for ARM64 architecture (`AL2023_ARM_64_NVIDIA`) for managed node groups, but this AMI type is not available in the CDK EKS constructs. Users who want to leverage ARM64-based GPU instances (like Graviton-based GPU instances) with the latest Amazon Linux 2023 optimized for NVIDIA workloads cannot specify this AMI type through CDK, forcing them to use CloudFormation directly or older AMI types.
**Description of changes:**
Add support for Amazon Linux 2023 with NVIDIA drivers on ARM64 architecture for EKS managed node groups:
* **Add `AL2023_ARM_64_NVIDIA` to `NodegroupAmiType` enum**: New AMI type following the established naming convention
* **Include in `gpuAmiTypes` array**: Ensures proper validation logic for GPU instance types
* **Add comprehensive JSDoc documentation**: Describes the AMI as "Amazon Linux 2023 with NVIDIA drivers (ARM-64)"
* **Maintain backward compatibility**: No breaking changes to existing functionality
* **Follow established patterns**: Consistent with existing AMI type implementations
The implementation enables users to specify ARM64 GPU instances with the latest Amazon Linux 2023 optimized for NVIDIA workloads:
```typescript
new eks.Nodegroup(this, 'GpuNodeGroup', {
cluster: cluster,
amiType: eks.NodegroupAmiType.AL2023_ARM_64_NVIDIA,
instanceTypes: [new ec2.InstanceType('g5g.xlarge')], // ARM64 GPU instance
});
```
**Description of how you validated changes:**
* Unit Tests: All existing EKS tests pass without modifications, confirming no regressions
**Checklist:**
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)1 parent 89bfef7 commit 7379a4b
File tree
4 files changed
+12
-2
lines changed- packages
- @aws-cdk/aws-eks-v2-alpha
- lib
- test
- aws-cdk-lib/aws-eks
- lib
- test
4 files changed
+12
-2
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
634 | 638 | | |
635 | 639 | | |
636 | 640 | | |
| 641 | + | |
637 | 642 | | |
638 | 643 | | |
639 | 644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
| 641 | + | |
642 | 642 | | |
643 | 643 | | |
644 | 644 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| |||
647 | 651 | | |
648 | 652 | | |
649 | 653 | | |
| 654 | + | |
650 | 655 | | |
651 | 656 | | |
652 | 657 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
| 668 | + | |
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
| |||
0 commit comments