Skip to content

Commit 1799f7e

Browse files
authoredNov 30, 2021
feat(ec2): add g5g instances (#17765)
New `g5g` instances release notes: https://aws.amazon.com/blogs/aws/new-amazon-ec2-g5g-instances-powered-by-aws-graviton2-processors-and-nvidia-t4g-tensor-core-gpus/ ![image](https://user-images.githubusercontent.com/31543/143961493-528f208d-f941-43d8-ba23-7f1d6b813913.png) Docs have already been updated a while ago: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-instancetype ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent b06f120 commit 1799f7e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 

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

+10
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,16 @@ export enum InstanceClass {
486486
*/
487487
G5 = 'g5',
488488

489+
/**
490+
* Graphics-optimized instances powered by AWS Graviton2 Processors and NVIDIA T4G Tensor Core GPUs, 5th generation
491+
*/
492+
GRAPHICS5_GRAVITON2 = 'g5g',
493+
494+
/**
495+
* Graphics-optimized instances powered by AWS Graviton2 Processors and NVIDIA T4G Tensor Core GPUs, 5th generation
496+
*/
497+
G5G = 'g5g',
498+
489499
/**
490500
* Parallel-processing optimized instances, 2nd generation
491501
*/

‎packages/@aws-cdk/aws-ec2/test/instance.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('instance', () => {
122122
test('instance architecture is correctly discerned for arm instances', () => {
123123
// GIVEN
124124
const sampleInstanceClasses = [
125-
'a1', 't4g', 'c6g', 'c6gd', 'c6gn', 'm6g', 'm6gd', 'r6g', 'r6gd', // current Graviton-based instance classes
125+
'a1', 't4g', 'c6g', 'c6gd', 'c6gn', 'm6g', 'm6gd', 'r6g', 'r6gd', 'g5g', // current Graviton-based instance classes
126126
'a13', 't11g', 'y10ng', 'z11ngd', // theoretical future Graviton-based instance classes
127127
];
128128

0 commit comments

Comments
 (0)
Please sign in to comment.