Skip to content

Commit 88a5204

Browse files
authoredNov 26, 2021
feat(ec2): add mac1 instance (#17677)
`mac1` instances got released last year: https://aws.amazon.com/about-aws/whats-new/2021/10/amazon-ec2-mac-instances-additional-regions/ 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 Note: Whenever `mac2` comes out (probably on M1, or most likely on M1Pro/M1Max) we'll have to update `InstanceArchitecture` enum [here](https://github.com/aws/aws-cdk/blob/ddf2881ee24cbf3083463a6e772a5c91acc229aa/packages/%40aws-cdk/aws-ec2/lib/instance-types.ts#L573). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 53620e9 commit 88a5204

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
 

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

+11-2
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,17 @@ export enum InstanceClass {
574574
/**
575575
* Inferentia Chips based instances for machine learning inference applications, 1st generation
576576
*/
577-
INF1 = 'inf1'
577+
INF1 = 'inf1',
578+
579+
/**
580+
* Macintosh instances built on Apple Mac mini computers, 1st generation with Intel procesors
581+
*/
582+
MACINTOSH1_INTEL = 'mac1',
583+
584+
/**
585+
* Macintosh instances built on Apple Mac mini computers, 1st generation with Intel procesors
586+
*/
587+
MAC1 = 'mac1',
578588
}
579589

580590
/**
@@ -695,7 +705,6 @@ export enum InstanceSize {
695705
* Instance size METAL (metal)
696706
*/
697707
METAL = 'metal',
698-
699708
}
700709

701710
/**

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,4 +483,4 @@ test('cause replacement from s3 asset in userdata', () => {
483483
[`InstanceTwoDC29A7A7${hash}`]: expect.objectContaining({ Type: 'AWS::EC2::Instance', Properties: expect.anything() }),
484484
}),
485485
}));
486-
});
486+
});

0 commit comments

Comments
 (0)
Please sign in to comment.