Skip to content

Commit

Permalink
feat(ec2): trn1 instance type (aws#28477)
Browse files Browse the repository at this point in the history
adding support of trn1 instance type
they were introduced [here](https://aws.amazon.com/ec2/instance-types/trn1/)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
ayush-shah-1501 authored and paulhcsun committed Jan 5, 2024
1 parent f7d2756 commit 9a63406
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/lib/instance-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,11 @@ export enum InstanceClass {
*/
STORAGE_COMPUTE_1 = 'storage-compute-1',

/**
* High performance computing powered by AWS Trainium
*/
TRN1 = 'trn1',

/**
* Storage/compute balanced instances, 1st generation
*/
Expand Down Expand Up @@ -1395,6 +1400,7 @@ export class InstanceType {
[InstanceClass.D3]: 'd3',
[InstanceClass.STORAGE3_ENHANCED_NETWORK]: 'd3en',
[InstanceClass.D3EN]: 'd3en',
[InstanceClass.TRN1]: 'trn1',
[InstanceClass.STORAGE_COMPUTE_1]: 'h1',
[InstanceClass.H1]: 'h1',
[InstanceClass.IO3]: 'i3',
Expand Down

0 comments on commit 9a63406

Please sign in to comment.