chore(ec2): add g7e instance class (NVIDIA Blackwell B200)#37971
Open
camiloaz wants to merge 1 commit into
Open
chore(ec2): add g7e instance class (NVIDIA Blackwell B200)#37971camiloaz wants to merge 1 commit into
camiloaz wants to merge 1 commit into
Conversation
aws-cdk-automation
previously requested changes
May 22, 2026
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
8a2f5e4 to
7e54b7f
Compare
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue # (if applicable)
Closes #37854.
Reason for this change
The
g7einstance family (NVIDIA Blackwell B200, 96 GB VRAM per GPU) is not included in theInstanceClassenum inaws-ec2or in theisGpuInstanceTypeallowlist inaws-eks. This causesaddNodegroupCapacity/add_nodegroup_capacityto fail with an AMI-type validation error when ag7einstance is specified withAL2023_X86_64_NVIDIA.Description of changes
packages/aws-cdk-lib/aws-ec2/lib/instance-types.tsGRAPHICS7_EFFICIENT = 'graphics7-efficient'andG7E = 'g7e'to theInstanceClassenum, following the same pattern asGRAPHICS6_EFFICIENT/G6E.InstanceType.of.packages/aws-cdk-lib/aws-eks/lib/private/nodegroup.tsInstanceClass.G7Eto theknownGpuInstanceTypesarray inisGpuInstanceType, so thatg7einstances are recognised as GPU and the correct NVIDIA AMI type is selected automatically.Description of how you validated changes
ec2.InstanceType.of(ec2.InstanceClass.G7E, ec2.InstanceSize.XLARGE2)to the existingisGpuInstanceTypepositive-case test.amiType should be AL2_x86_64_GPU with g7e instanceType) mirroring the existingg6etest.Checklist