As somebody who has been utilizing macOS since 2001 and Amazon EC2 Mac cases since their launch 4 years in the past, I’ve helped quite a few clients scale their steady integration and supply (CI/CD) pipelines on AWS. At the moment, I’m excited to share that Amazon EC2 M4 and M4 Professional Mac cases are actually usually obtainable.
Growth groups constructing functions for Apple platforms want highly effective computing assets to deal with advanced construct processes and run a number of iOS simulators concurrently. As growth tasks develop bigger and extra subtle, groups require elevated efficiency and reminiscence capability to keep up speedy growth cycles.
Apple M4 Mac mini on the core
EC2 M4 Mac cases (often known as mac-m4.metallic
within the API) are constructed on Apple M4 Mac mini computer systems and are constructed on the AWS Nitro System. They characteristic Apple silicon M4 chips with 10-core CPU (4 efficiency and 6 effectivity cores), 10-core GPU, 16-core Neural Engine, and 24 GB unified reminiscence, delivering enhanced efficiency for iOS and macOS software construct workloads. When constructing and testing functions, M4 Mac cases ship as much as 20 p.c higher software construct efficiency in comparison with EC2 M2 Mac cases.
EC2 M4 Professional Mac (mac-m4pro.metallic
within the API) cases are powered by Apple silicon M4 Professional chips with 14-core CPU, 20-core GPU, 16-core Neural Engine, and 48 GB unified reminiscence. These cases provide as much as 15 p.c higher software construct efficiency in comparison with EC2 M2 Professional Mac cases. The elevated reminiscence and computing energy make it doable to run extra assessments in parallel utilizing a number of gadget simulators.
Every M4 and M4 Professional Mac occasion now comes with 2 TB of native storage, offering low-latency storage for improved caching and construct and take a look at efficiency.
Each occasion sorts help macOS Sonoma model 15.6 and later as Amazon Machine Photos (AMIs). The AWS Nitro System offers as much as 10 Gbps of Amazon Digital Non-public Cloud (Amazon VPC) community bandwidth and eight Gbps of Amazon Elastic Block Retailer (Amazon EBS) storage bandwidth by high-speed Thunderbolt connections.
Amazon EC2 Mac cases combine seamlessly with AWS companies, which suggests you possibly can:
Let me present you find out how to get began
You may launch an EC2 M4 or M4 Professional Mac cases by the AWS Administration Console, AWS Command Line Interface (AWS CLI), or AWS SDKs.
For this demo, let’s begin an M4 Professional occasion from the console. I first allocate a devoted host to run my cases. On the AWS Administration Console, I navigate to EC2, then Devoted Hosts, and I choose Allocate Devoted Host.
Then, I enter a Identify tag and I choose the Occasion household (mac-m4pro
) and an Occasion kind (mac-m4pro.metallic
). I select one Availability Zone and I clear Host upkeep.
Alternatively, I can use the command line interface:
aws ec2 allocate-hosts
--availability-zone-id "usw2-az4"
--auto-placement "off"
--host-recovery "off"
--host-maintenance "off"
--quantity 1
--instance-type "mac-m4pro.metallic"
After the devoted host is allotted to my account, I choose the host I simply allotted, then I choose the Actions menu and select Launch occasion(s) onto host.
Discover the console offers you, amongst different data, the Newest supported macOS variations for the sort of host. On this case, it’s macOS 15.6.
On the Launch an occasion web page, I enter a Identify. I choose a macOS Sequoia Amazon Machine Picture (AMI). I be certain that the Structure is 64-bit Arm and the Occasion kind is mac-m4pro.metallic
.
The remainder of the parameters arn’t particular to Amazon EC2 Mac: the community and storage configuration. When beginning an occasion for growth use, ensure you choose a quantity with minimal 200 Gb or extra. The default 100 Gb quantity dimension isn’t adequate to obtain and set up Xcode.
When prepared, I choose the Launch occasion orange button on the underside of the web page. The occasion will quickly seem as Working within the console. Nonetheless, it would take as much as quarter-hour to mean you can join over SSH.
Alternatively, I can use this command:
aws ec2 run-instances
--image-id "ami-000420887c24e4ac8" # AMI ID relies on the area !
--instance-type "mac-m4pro.metallic"
--key-name "my-ssh-key-name"
--network-interfaces '{"AssociatePublicIpAddress":true,"DeviceIndex":0,"Teams":["sg-0c2f1a3e01b84f3a3"]}' # Safety Group ID relies on your config
--tag-specifications '{"ResourceType":"occasion","Tags":[{"Key":"Name","Value":"My Dev Server"}]}'
--placement '{"HostId":"h-0e984064522b4b60b","Tenancy":"host"}' # Host ID relies on your config
--private-dns-name-options '{"HostnameType":"ip-name","EnableResourceNameDnsARecord":true,"EnableResourceNameDnsAAAARecord":false}'
--count "1"
Set up Xcode from the Terminal
After the occasion is reachable, I can join utilizing SSH to it and set up my growth instruments. I take advantage of xcodeinstall to obtain and set up Xcode 16.4.
From my laptop computer, I open a session with my Apple developer credentials:
# on my laptop computer, with permissions to entry AWS Secret Supervisor
» xcodeinstall authenticate -s eu-central-1
Retrieving Apple Developer Portal credentials...
Authenticating...
🔐 Two elements authentication is enabled, enter your 2FA code: 067785
✅ Authenticated with MFA.
I connect with the EC2 Mac occasion I simply launched. Then, I obtain and set up Xcode:
» ssh [email protected]
Warning: Completely added '44.234.115.119' (ED25519) to the record of identified hosts.
Final login: Sat Aug 23 13:49:55 2025 from 81.49.207.77
┌───┬──┐ __| __|_ )
│ ╷╭╯╷ │ _| ( /
│ └╮ │ ___|___|___|
│ ╰─┼╯ │ Amazon EC2
└───┴──┘ macOS Sequoia 15.6
ec2-user@ip-172-31-54-74 ~ % brew faucet sebsto/macos
==> Tapping sebsto/macos
Cloning into '/choose/homebrew/Library/Faucets/sebsto/homebrew-macos'...
distant: Enumerating objects: 227, accomplished.
distant: Counting objects: 100% (71/71), accomplished.
distant: Compressing objects: 100% (57/57), accomplished.
distant: Complete 227 (delta 22), reused 63 (delta 14), pack-reused 156 (from 1)
Receiving objects: 100% (227/227), 37.93 KiB | 7.59 MiB/s, accomplished.
Resolving deltas: 100% (72/72), accomplished.
Tapped 1 method (13 information, 61KB).
ec2-user@ip-172-31-54-74 ~ % brew set up xcodeinstall
==> Fetching downloads for: xcodeinstall
==> Fetching sebsto/macos/xcodeinstall
==> Downloading https://github.com/sebsto/xcodeinstall/releases/obtain/v0.12.0/xcodeinstall-0.12.0.arm64_sequoia.bottle.tar.gz
Already downloaded: /Customers/ec2-user/Library/Caches/Homebrew/downloads/9f68a7a50ccfdc479c33074716fd654b8528be0ec2430c87bc2b2fa0c36abb2d--xcodeinstall-0.12.0.arm64_sequoia.bottle.tar.gz
==> Putting in xcodeinstall from sebsto/macos
==> Pouring xcodeinstall-0.12.0.arm64_sequoia.bottle.tar.gz
🍺 /choose/homebrew/Cellar/xcodeinstall/0.12.0: 8 information, 55.2MB
==> Working `brew cleanup xcodeinstall`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Cover these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
==> No outdated dependents to improve!
ec2-user@ip-172-31-54-74 ~ % xcodeinstall obtain -s eu-central-1 -f -n "Xcode 16.4.xip"
Downloading Xcode 16.4
100% [============================================================] 2895 MB / 180.59 MBs
[ OK ]
✅ Xcode 16.4.xip downloaded
ec2-user@ip-172-31-54-74 ~ % xcodeinstall set up -n "Xcode 16.4.xip"
Putting in...
[1/6] Increasing Xcode xip (this would possibly take some time)
[2/6] Transferring Xcode to /Purposes
[3/6] Putting in further packages... XcodeSystemResources.pkg
[4/6] Putting in further packages... CoreTypes.pkg
[5/6] Putting in further packages... MobileDevice.pkg
[6/6] Putting in further packages... MobileDeviceDevelopment.pkg
[ OK ]
✅ file:///Customers/ec2-user/.xcodeinstall/obtain/Xcodepercent2016.4.xip put in
ec2-user@ip-172-31-54-74 ~ % sudo xcodebuild -license settle for
ec2-user@ip-172-31-54-74 ~ %
Issues to know
Choose an EBS quantity with minimal 200 Gb for growth functions. The 100 Gb default quantity dimension shouldn’t be adequate to put in Xcode. I often choose 500 Gb. While you enhance the EBS quantity dimension after the launch of the occasion, bear in mind to resize the APFS filesystem.
Alternatively, you possibly can select to put in your growth instruments and framework on the low-latency native 2 Tb SSD drive obtainable within the Mac mini. Listen that the content material of that quantity is certain to the occasion lifecycle, not the devoted host. Which means that the whole lot might be deleted from the interior SSD storage once you cease and restart the occasion.
Themac-m4.metallic
and mac-m4pro.metallic
cases help macOS Sequoia 15.6 and later.
You may migrate your current EC2 Mac cases when the migrated occasion runs macOS 15 (Sequoia). Create a customized AMI out of your current occasion and begin an M4 or M4 Professional occasion from this AMI.
Lastly, I recommend checking the tutorials I wrote that can assist you to get began with Amazon EC2 Mac:
Pricing and availability
EC2 M4 and M4 Professional Mac cases are presently obtainable in US East (N. Virginia) and US West (Oregon), with further Areas deliberate for the long run.
Amazon EC2 Mac cases can be found for buy as Devoted Hosts by the On-Demand and Financial savings Plans pricing fashions. Billing for EC2 Mac cases is per second with a 24-hour minimal allocation interval to adjust to the Apple macOS Software program License Settlement. On the finish of the 24-hour minimal allocation interval, the host may be launched at any time with no additional dedication
As somebody who works carefully with Apple builders, I’m curious to see the way you’ll use these new cases to speed up your growth cycles. The mix of elevated efficiency, enhanced reminiscence capability, and integration with AWS companies opens new prospects for groups constructing functions for iOS, macOS, iPadOS, tvOS, watchOS, and visionOS platforms. Past software growth, Apple silicon’s Neural Engine makes these cases cost-effective candidates for operating machine studying (ML) inference workloads. I’ll be discussing this matter intimately at AWS re:Invent 2025, the place I’ll share benchmarks and greatest practices for optimizing ML workloads on EC2 Mac cases.
To be taught extra about EC2 M4 and M4 Professional Mac cases, go to the Amazon EC2 Mac Cases web page or confer with the EC2 Mac documentation. You can begin utilizing these cases at the moment to modernize your Apple growth workflows on AWS.