Skip to content

Commit 31bf1bf

Browse files
authored
chore(ec2): add r8gb instance class (#35582)
### Reason for this change https://aws.amazon.com/about-aws/whats-new/2025/09/amazon-ec2-r8gb-instances/ ### Description of changes Add r8gb instance class ### Description of how you validated changes ```console $ aws ec2 describe-instance-types \ --filters "Name=instance-type,Values=r8gb.*" \ --query "InstanceTypes[].InstanceType" \ --output table ----------------------- |DescribeInstanceTypes| +---------------------+ | r8gb.8xlarge | | r8gb.4xlarge | | r8gb.large | | r8gb.12xlarge | | r8gb.16xlarge | | r8gb.medium | | r8gb.metal-24xl | | r8gb.xlarge | | r8gb.2xlarge | | r8gb.24xlarge | +---------------------+ ``` ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent d24e612 commit 31bf1bf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,16 @@ export enum InstanceClass {
502502
*/
503503
R8GN = 'r8gn',
504504

505+
/**
506+
* Memory and EBS optimized instances, 8th generation with Graviton4 processors
507+
*/
508+
MEMORY8_GRAVITON4_EBS_OPTIMIZED = 'memory8-graviton4-ebs-optimized',
509+
510+
/**
511+
* Memory and EBS optimized instances, 8th generation with Graviton4 processors
512+
*/
513+
R8GB = 'r8gb',
514+
505515
/**
506516
* Compute optimized instances, 3rd generation
507517
*/
@@ -1861,6 +1871,8 @@ export class InstanceType {
18611871
[InstanceClass.R8GD]: 'r8gd',
18621872
[InstanceClass.MEMORY8_GRAVITON4_HIGH_NETWORK_BANDWIDTH]: 'r8gn',
18631873
[InstanceClass.R8GN]: 'r8gn',
1874+
[InstanceClass.MEMORY8_GRAVITON4_EBS_OPTIMIZED]: 'r8gb',
1875+
[InstanceClass.R8GB]: 'r8gb',
18641876
[InstanceClass.MEMORY8_INTEL_BASE]: 'r8i',
18651877
[InstanceClass.R8I]: 'r8i',
18661878
[InstanceClass.MEMORY8_INTEL_FLEX]: 'r8i-flex',

0 commit comments

Comments
 (0)