Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ec2): add mac2-m1ultra instance type #30817

Merged
merged 13 commits into from
Aug 14, 2024
12 changes: 12 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 @@ -1170,6 +1170,16 @@ export enum InstanceClass {
*/
MAC2_M2PRO = 'mac2-m2pro',

/**
* Macintosh instances built on 2022 Mac Studio hardware powered by Apple silicon M1 Ultra processors
*/
MACINTOSH2_M1_ULTRA = 'macintosh2-m1-ultra',

/**
* Macintosh instances built on 2022 Mac Studio hardware powered by Apple silicon M1 Ultra processors
*/
MAC2_M1ULTRA = 'mac2-m1ultra',

/**
* Multi-stream video transcoding instances for resolutions up to 4K UHD, 1st generation
*/
Expand Down Expand Up @@ -1632,6 +1642,8 @@ export class InstanceType {
[InstanceClass.MAC2_M2]: 'mac2-m2',
[InstanceClass.MACINTOSH2_M2_PRO]: 'mac2-m2pro',
[InstanceClass.MAC2_M2PRO]: 'mac2-m2pro',
[InstanceClass.MACINTOSH2_M1_ULTRA]: 'mac2-m1ultra',
badmintoncryer marked this conversation as resolved.
Show resolved Hide resolved
[InstanceClass.MAC2_M1ULTRA]: 'mac2-m1ultra',
[InstanceClass.VIDEO_TRANSCODING1]: 'vt1',
[InstanceClass.VT1]: 'vt1',
[InstanceClass.HIGH_PERFORMANCE_COMPUTING6_AMD]: 'hpc6a',
Expand Down
8 changes: 8 additions & 0 deletions packages/aws-cdk-lib/aws-ec2/test/instance-type.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { InstanceClass, InstanceSize, InstanceType } from '../lib';
moelasmar marked this conversation as resolved.
Show resolved Hide resolved

describe('InstanceType', () => {
test('mac2 m1 ultra', () => {
const instanceType = InstanceType.of(InstanceClass.MAC2_M1ULTRA, InstanceSize.METAL);
expect(instanceType.toString()).toEqual('mac2-m1ultra.metal');
});
});