Skip to content

eks: Amazon Linux 2023 is not fully supported in nodegroup #29546

@arlampin

Description

@arlampin

Describe the bug

#29335 added support for Amazon Linux 2023 NodegroupAmiType, but it only added the enum values. They are not listed as valid types in managed-nodegroup.ts arm64AmiTypes or x8664AmiTypes, thus they can't be used alongside instanceTypes nodegroup parameter.

Expected Behavior

Defining both amiType: AL2023_X86_64_STANDARD / AL2023_ARM_64_STANDARD and instanceTypes should work.

Current Behavior

Using both instanceTypes and AL2023 amiType results in following error:

Error: The specified AMI does not match the instance types architecture, either specify one of AL2_ARM_64, BOTTLEROCKET_ARM_64 or don't specify any

Reproduction Steps

cluster.addNodegroupCapacity('Arm64', {
  instanceTypes: [
    ec2.InstanceType.of(ec2.InstanceClass.T4G, ec2.InstanceSize.XLARGE), 
  ],
  amiType: NodegroupAmiType.AL2023_ARM_64_STANDARD
});

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.133.0 (build dcc1e75)

Framework Version

No response

Node.js Version

v18.18.2

OS

macos

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-eksRelated to Amazon Elastic Kubernetes ServicebugThis issue is a bug.effort/mediumMedium work item – several days of effortp1

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions