Tuesday, August 11, 2026
HomeCloud ComputingNew – Amazon EC2 M1 Mac Cases

New – Amazon EC2 M1 Mac Cases

[ad_1]

Final yr, through the re:Invent 2021 convention, I wrote a weblog submit to announce the preview of EC2 M1 Mac cases. I do know lots of you requested entry to the preview, and we did our greatest however couldn’t fulfill all people. Nevertheless, the wait is over. I’ve the pleasure of saying the final availability of EC2 M1 Mac cases.

EC2 Mac cases are devoted Mac mini computer systems connected via Thunderbolt to the AWS Nitro System, which lets the Mac mini seem and behave like one other EC2 occasion. It connects to your Amazon Digital Personal Cloud (Amazon VPC), boots from Amazon Elastic Block Retailer (EBS) volumes, and makes use of EBS snapshots, Amazon Machine Photographs (AMIs), safety teams and different AWS companies reminiscent of Amazon CloudWatch and AWS Techniques Supervisor.

The provision of EC2 M1 Mac cases permits you to entry machines constructed across the Apple-designed M1 System on Chip (SoC). If you’re a Mac developer and re-architecting your apps to natively help Macs with Apple silicon, you might now construct and check your apps and reap the benefits of all the advantages of AWS. Builders constructing for iPhone, iPad, Apple Watch, and Apple TV may even profit from sooner builds. EC2 M1 Mac cases ship as much as 60 % higher value efficiency over the x86-based EC2 Mac cases for iPhone and Mac app construct workloads.

For instance, I examined the time it takes to scrub, construct, archive, and run the unit exams on a pattern mission I wrote. The brand new EC2 M1 Mac cases full this set of duties in 49 seconds on common. That is 47.8 % sooner than the identical set of duties operating on the earlier technology of EC2 Mac cases.

To see how you can launch an EC2 M1 Mac occasion from the AWS Administration Console or the AWS Command Line Interface (CLI), I invite you to learn my final weblog submit on the topic.

EC2 Mac M1 Instance

In the course of the six months of the preview, we collected your suggestions and fine-tuned the service to your wants.

We’ve added a new FAQ part to our documentation to get began with EC2 M1 Mac cases. Brokers for administration and observability, reminiscent of Techniques Supervisor and CloudWatch, are pre-installed on all our macOS AMIs, together with instruments such because the AWS Command Line Interface (CLI) and our AWS SDKs. EC2 M1 Mac cases combine with different AWS companies, reminiscent of Amazon Elastic File System (Amazon EFS) for file storage, AWS Auto Scaling, or AWS Secrets and techniques Supervisor.

For instance, I’m utilizing Secrets and techniques Supervisor to securely retailer my construct secrets and techniques, such because the signing keys and certificates used to signal my binaries earlier than to distribute them on the App Retailer. From my laptop computer, I first be certain that to export the certificates from the macOS keychain. I then add my certificates to Secrets and techniques Supervisor with this command:

aws secretsmanager create-secret            
       --name apple-signing-dev-certificate 
       --secret-binary fileb://./secrets and techniques/apple_dev_seb.p12 

On the EC2 M1 Mac occasion, to organize my occasion earlier than the construct part, I obtain the certificates, decode it (it’s base64-encoded), and retailer it within the EC2 M1 Mac occasion keychain, the place the codesign instrument will discover it through the construct.

# obtain the certificates from Secrets and techniques Supervisor
SIGNING_DEV_KEY=$($aws secretsmanager get-secret-value  
      --secret-id apple-signing-dev-certificate         
      --query SecretBinary --output textual content)
	  

# save the certificates as a file
echo $SIGNING_DEV_KEY | base64 -d > seb_dev_certificate.p12

# import the certificates within the keychain 
safety import seb_dev_certificate.p12 
                -P "my_cert_password"   
                -k my.dev.keychain      
                -T /usr/bin/safety -T /usr/bin/codesign -T /usr/bin/xcodebuild

# delete the certificates from disk
rm seb_dev_certificate.p12

There are just a few extra configuration steps to get code signing work from the macOS command line. You possibly can take a look at this presentation I made or my code repository for the main points.

We’re making ready a few occasions that will help you study extra about EC2 M1 Mac occasion use circumstances and configuration. First, we just lately had an internet webinar to discover ways to reap the benefits of EC2 Mac cases for iOS improvement, content material is on the market so that you can devour on-demand after a free registration step. Second, we’re making ready a one-day, in-person developer convention for later this yr. The convention agenda shall be filled with technical content material and workshops. Keep tuned on social media to study extra about it.

Final and never least, however not associated to EC2 Mac cases, the Apple WWDC 2022 convention passed off final month, from June 6–8, 2022, and the content material is on the market on-line. This can be a nice event to study extra about improvement for Apple methods basically.

And now, go construct 😉

— seb



[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments