aws / aws/aws-cdk

aws-eks: `addAutoScalingGroupCapacity` lacks support for Amazon Linux 2023

Open
#29,983 13 comments 2 reactions 0 assignees View on GitHub
@aws-cdk/aws-eks @aws-cdk/aws-eks-v2-alpha effort/medium feature-request p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
71

Description

### Describe the feature

`addAutoScalingGroupCapacity` allows the user to select a MachineImageType, but this only includes AL2 or Bottlerocket. AL2023 is missing.

https://github.com/aws/aws-cdk/blob/v2.139.0/packages/aws-cdk-lib/aws-eks/lib/cluster.ts#L2468-L2480

### Use Case

I want to use a newer kernel than is available in AL2 on my EKS ASGs.

### Proposed Solution

_No response_

### Other Information

AL2023 support has been added for managed node groups but not for ASGs. See #29546 #29334. cc @pahud as you've handled those issues.

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CDK version used

2.139.0

### Environment details (OS name and version, etc.)

N/A

Contributor guide

Open the contributing guide

Research direction

Start in packages/aws-cdk-lib/aws-eks/lib/cluster.ts around lines 2468-2480, where addAutoScalingGroupCapacity selects the MachineImageType. Compare the existing AL2 and Bottlerocket handling with the AL2023 support referenced in issues #29546 and #29334. Done means ASGs can select Amazon Linux 2023 through this API, with the relevant behavior covered by the repository's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, kubernetes, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.