Wednesday, July 27, 2022
HomeCloud computingNew – Amazon EC2 M1 Mac Situations

New – Amazon EC2 M1 Mac Situations

Final 12 months, throughout the re:Invent 2021 convention, I wrote a weblog publish 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. Nonetheless, 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 by 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 resembling Amazon CloudWatch and AWS Programs Supervisor.

The provision of EC2 M1 Mac cases enables 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 assist Macs with Apple silicon, it’s possible you’ll now construct and take a look at your apps and make the most of all the advantages of AWS. Builders constructing for iPhone, iPad, Apple Watch, and Apple TV will 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 wash, construct, archive, and run the unit assessments 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 working on the earlier technology of EC2 Mac cases.

To see learn how to 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 publish 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, resembling Programs 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, resembling 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 ensure 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 arrange my occasion earlier than the construct section, 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 throughout 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"   
                -T /usr/bin/safety -T /usr/bin/codesign -T /usr/bin/xcodebuild

# delete the certificates from disk
rm seb_dev_certificate.p12

There are a couple of extra configuration steps to get code signing work from the macOS command line. You may try this presentation I made or my code repository for the main points.

We’re getting ready a few occasions that will help you study extra about EC2 M1 Mac occasion use circumstances and configuration. First, we lately had a web based webinar to discover ways to make the most of EC2 Mac cases for iOS growth, content material is on the market so that you can eat on-demand after a free registration step. Second, we’re getting ready a one-day, in-person developer convention for later this 12 months. The convention agenda might be full of 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 befell final month, from June 6–8, 2022, and the content material is on the market on-line. It is a nice event to study extra about growth for Apple methods usually.

And now, go construct 😉

— seb



Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments