Launch a Mac instance using the AWS Management Console or the AWS CLI - Amazon Elastic Compute Cloud

Launch a Mac instance using the AWS Management Console or the AWS CLI

EC2 Mac instances require a Dedicated Host. You first need to allocate a host to your account, and then launch the instance onto the host.

You can launch a Mac instance using the AWS Management Console or the AWS CLI.

Launch a Mac instance using the console

To launch a Mac instance onto a Dedicated Host
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. Allocate the Dedicated Host, as follows:

    1. In the navigation pane, choose Dedicated Hosts.

    2. Choose Allocate Dedicated Host and then do the following:

      1. For Instance family, choose mac1, mac2, mac2-m2, mac2-m2pro, or mac2-m1ultra. If the instance family doesn’t appear in the list, it’s not supported in the currently selected Region.

      2. For Instance type, choose mac1.metal, mac2.metal, mac2-m2.metal, mac2-m2pro.metal, or mac2-m1ultra.metal based on the instance family chosen.

      3. For Availability Zone, choose the Availability Zone for the Dedicated Host.

      4. For Quantity, keep 1.

      5. Choose Allocate.

  3. Launch the instance on the host, as follows:

    1. Select the Dedicated Host that you created and then do the following:

      1. Choose Actions, Launch instance(s) onto host.

      2. Under Application and OS Images (Amazon Machine Image), select a macOS AMI.

      3. Under Instance type, select the appropriate instance type (mac1.metal, mac2.metal, mac2-m2.metal, mac2-m2pro.metal, or mac2-m1ultra.metal).

      4. Under Advanced details, verify that Tenancy, Tenancy host by, and Tenancy host ID are preconfigured based on the Dedicated Host you created. Update Tenancy affinity as needed.

      5. Complete the wizard, specifying EBS volumes, security groups, and key pairs as needed.

      6. In the Summary panel, choose Launch instance.

    2. A confirmation page lets you know that your instance is launching. Choose View all instances to close the confirmation page and return to the console. The initial state of an instance is pending. The instance is ready when its state changes to running and it passes status checks.

Launch a Mac instance using the AWS CLI

Allocate the Dedicated Host

Use the following allocate-hosts command to allocate a Dedicated Host for your Mac instance, replacing the instance-type with either mac1.metal, mac2.metal, mac2-m2.metal, mac2-m2pro.metal, or mac2-m1ultra.metal, and the region and availability-zone with the appropriate ones for your environment.

aws ec2 allocate-hosts --region us-east-1 --instance-type mac1.metal --availability-zone us-east-1b --auto-placement "on" --quantity 1

Launch the instance on the host

Use the following run-instances command to launch a Mac instance, again replacing the instance-type with either mac1.metal, mac2.metal, mac2-m2.metal, mac2-m2pro.metal, or mac2-m1ultra.metal, and the region and availability-zone with the ones used previously.

aws ec2 run-instances --region us-east-1 --instance-type mac1.metal --placement Tenancy=host --image-id ami_id --key-name my-key-pair

The initial state of an instance is pending. The instance is ready when its state changes to running and it passes status checks. Use the following describe-instance-status command to display status information for your instance.

aws ec2 describe-instance-status --instance-ids i-017f8354e2dc69c4f

The following is example output for an instance that is running and has passed status checks.

{ "InstanceStatuses": [ { "AvailabilityZone": "us-east-1b", "InstanceId": "i-017f8354e2dc69c4f", "InstanceState": { "Code": 16, "Name": "running" }, "InstanceStatus": { "Details": [ { "Name": "reachability", "Status": "passed" } ], "Status": "ok" }, "SystemStatus": { "Details": [ { "Name": "reachability", "Status": "passed" } ], "Status": "ok" } } ] }