Skip to content

chore(ec2): add g7e instance class (NVIDIA Blackwell B200)#37971

Open
camiloaz wants to merge 1 commit into
aws:mainfrom
camiloaz:feat/add-g7e-instance-class
Open

chore(ec2): add g7e instance class (NVIDIA Blackwell B200)#37971
camiloaz wants to merge 1 commit into
aws:mainfrom
camiloaz:feat/add-g7e-instance-class

Conversation

@camiloaz
Copy link
Copy Markdown

@camiloaz camiloaz commented May 22, 2026

Issue # (if applicable)

Closes #37854.

Reason for this change

The g7e instance family (NVIDIA Blackwell B200, 96 GB VRAM per GPU) is not included in the InstanceClass enum in aws-ec2 or in the isGpuInstanceType allowlist in aws-eks. This causes addNodegroupCapacity / add_nodegroup_capacity to fail with an AMI-type validation error when a g7e instance is specified with AL2023_X86_64_NVIDIA.

Description of changes

packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts

  • Added GRAPHICS7_EFFICIENT = 'graphics7-efficient' and G7E = 'g7e' to the InstanceClass enum, following the same pattern as GRAPHICS6_EFFICIENT / G6E.
  • Added the corresponding entries to the reverse lookup map inside InstanceType.of.

packages/aws-cdk-lib/aws-eks/lib/private/nodegroup.ts

  • Added InstanceClass.G7E to the knownGpuInstanceTypes array in isGpuInstanceType, so that g7e instances are recognised as GPU and the correct NVIDIA AMI type is selected automatically.

Description of how you validated changes

  • Added ec2.InstanceType.of(ec2.InstanceClass.G7E, ec2.InstanceSize.XLARGE2) to the existing isGpuInstanceType positive-case test.
  • Added a new nodegroup test (amiType should be AL2_x86_64_GPU with g7e instanceType) mirroring the existing g6e test.

Checklist

@github-actions github-actions Bot added effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels May 22, 2026
Copy link
Copy Markdown
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This review is outdated)

The g7e instance family (NVIDIA Blackwell B200, 96 GB VRAM per GPU) is
absent from the InstanceClass enum in aws-ec2 and from the isGpuInstanceType
allowlist in aws-eks. This causes add_nodegroup_capacity to fail with an
AMI-type validation error when a g7e instance is specified with
AL2023_X86_64_NVIDIA.

- Add GRAPHICS7_EFFICIENT and G7E to the InstanceClass enum and reverse
  lookup map in instance-types.ts, following the GRAPHICS6_EFFICIENT/G6E
  pattern.
- Add G7E to isGpuInstanceType in aws-eks/lib/private/nodegroup.ts.

Fixes aws#37854
@camiloaz camiloaz force-pushed the feat/add-g7e-instance-class branch from 8a2f5e4 to 7e54b7f Compare May 22, 2026 01:42
@camiloaz camiloaz changed the title feat(aws-ec2,aws-eks): add g7e instance class (NVIDIA Blackwell B200) chore(ec2): add g7e instance class (NVIDIA Blackwell B200) May 22, 2026
@aws-cdk-automation aws-cdk-automation dismissed their stale review May 22, 2026 01:44

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants