Skip to content

Commit

Permalink
feat(ec2): add im4gn and is4gen instances (aws#17780)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertd authored and TikiTDO committed Feb 21, 2022
1 parent 6329798 commit ca15aac
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions packages/@aws-cdk/aws-ec2/lib/instance-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,26 @@ export enum InstanceClass {
*/
I3EN = 'i3en',

/**
* Storage optimized instances powered by Graviton2 processor, 4th generation
*/
STORAGE4_GRAVITON_NETWORK_OPTIMIZED = 'im4gn',

/**
* Storage optimized instances powered by Graviton2 processor, 4th generation
*/
IM4GN = 'im4gn',

/**
* Storage optimized instances powered by Graviton2 processor, 4th generation
*/
STORAGE4_GRAVITON_NETWORK_STORAGE_OPTIMIZED = 'is4gen',

/**
* Storage optimized instances powered by Graviton2 processor, 4th generation
*/
IS4GEN = 'is4gen',

/**
* Burstable instances, 2nd generation
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-ec2/test/instance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe('instance', () => {
test('instance architecture is correctly discerned for arm instances', () => {
// GIVEN
const sampleInstanceClasses = [
'a1', 't4g', 'c6g', 'c6gd', 'c6gn', 'm6g', 'm6gd', 'r6g', 'r6gd', 'g5g', // current Graviton-based instance classes
'a1', 't4g', 'c6g', 'c6gd', 'c6gn', 'm6g', 'm6gd', 'r6g', 'r6gd', 'g5g', 'im4gn', 'is4gen', // current Graviton-based instance classes
'a13', 't11g', 'y10ng', 'z11ngd', // theoretical future Graviton-based instance classes
];

Expand Down

0 comments on commit ca15aac

Please sign in to comment.