Skip to content

aws-ec2,aws-eks: g7e instance family missing from InstanceClass enum and GPU instance allowlist #37854

@camiloaz

Description

@camiloaz

Describe the feature

The g7e instance family (NVIDIA Blackwell B200) is not recognized as a GPU instance type in CDK. Attempting to create an EKS managed nodegroup with a g7e instance and ami_type=AL2023_X86_64_NVIDIA fails because:

  1. g7e is absent from the InstanceClass enum in aws-ec2/lib/instance-types.ts — there is no G7E / GRAPHICS7_EFFICIENT entry.
  2. isGpuInstanceType() in aws-eks/lib/private/nodegroup.ts has a hardcoded allowlist that includes G6E but not G7E, so CDK rejects the AMI type as incompatible with the instance.

Use Case

I want to be able to create GPU nodegroups with the newer g7e instance types.

Proposed Solution

I believe the change should be to add g7e to both places, following the same pattern used for g6e:

  1. In aws-ec2/lib/instance-types.ts:
    GRAPHICS7_EFFICIENT = 'g7e',
    G7E = GRAPHICS7_EFFICIENT,
  2. In aws-eks/lib/private/nodegroup.ts, add InstanceClass.G7E to the knownGpuInstanceTypes array in isGpuInstanceType().

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.253.0

AWS CDK CLI version

2.1121.0

Environment details (OS name and version, etc.)

Linux (Ubuntu 6.17.0-22-generic), Python 3.12, Node.js v20.12.2, aws-cdk-lib 2.253.0, CDK CLI 2.1121.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws-cdk-libRelated to the aws-cdk-lib packageeffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions