6.1 C
Canberra
Monday, October 27, 2025

EC2 Picture Builder now helps constructing and testing macOS photos


Voiced by Polly

I’m thrilled to announce macOS help in EC2 Picture Builder. This new functionality means that you can create and handle machine photos to your macOS workloads along with the present help for Home windows and Linux.

A golden picture is a bootable disk picture, additionally known as an Amazon Machine Picture (AMI), pre-installed with the working system and all of the instruments required to your workloads. Within the context of a steady integration and steady deployment (CI/CD) pipeline, your golden picture most likely comprises the precise model of your working system (macOS) and all required growth instruments and libraries to construct and take a look at your functions (Xcode, Fastlane, and so forth.)

Growing and manually managing pipelines to construct macOS golden photos is time-consuming and diverts proficient assets from different duties. And when you’ve current pipelines to construct Linux or Home windows photos, it’s good to use completely different instruments for creating macOS photos, resulting in a disjointed workflow.

For these causes, lots of you’ve been asking for the flexibility to handle your macOS photos utilizing EC2 Picture Builder. You wish to consolidate your picture pipelines throughout working techniques and make the most of the automation and cloud-centered integrations that EC2 Picture Builder gives.

By including macOS help to EC2 Picture Builder, now you can streamline your picture administration processes and scale back the operational overhead of sustaining macOS photos. EC2 Picture Builder takes care of testing, versioning, and validating the bottom photos at scale, saving you the prices related to sustaining your most well-liked macOS variations.

Let’s see it in motion
Let’s create a pipeline to create a macOS AMI with Xcode 16. You’ll be able to observe an analogous course of to put in Fastlane in your AMIs.

At a excessive stage, there are 4 important steps.

  1. I outline a part for every instrument I wish to set up. A part is a YAML doc that tells EC2 Picture Builder what utility to put in and the way. On this instance, I create a customized part to put in Xcode. If you wish to set up Fastlane, you create a second part. I exploit the ExecuteBash motion to enter the shell instructions required to put in Xcode.
  2. I outline a recipe. A recipe begins from a base picture and lists the parts I wish to set up on it.
  3. I outline the infrastructure configuration I wish to use to construct my picture. This defines the pool of Amazon Elastic Compute Cloud (Amazon EC2) situations to construct the picture. In my case, I allocate an EC2 Mac Devoted Host in my account and reference it within the infrastructure configuration.
  4. I create a pipeline and a schedule to run on the infrastructure with the given recipes and an picture workflow. I take a look at the output AMI and ship it on the chosen vacation spot (my account or one other account)

It’s a lot simpler than it sounds. I’ll present you the steps within the AWS Administration Console. I may configure EC2 Picture Builder with the AWS Command Line Interface (AWS CLI) or write code utilizing certainly one of our AWS SDKs.

Step 1: Create a part
I open the console and choose EC2 Picture Builder, then Parts, and at last Create part.

Image Builder - Create component

I choose a base Picture working system and the Appropriate OS Variations. Then, I enter a Part identify and Part model. I choose Outline doc content material and enter this YAML as Content material.

identify: InstallXCodeDocument
description: This downloads and installs Xcode. Make sure you run `xcodeinstall authenticate -s us-east-1` out of your laptop computer first.
schemaVersion: 1.0

phases:
  - identify: construct
    steps:
      - identify: InstallXcode
        motion: ExecuteBash
        inputs:
          instructions:
             - sudo -u ec2-user /choose/homebrew/bin/brew faucet sebsto/macos
             - sudo -u ec2-user /choose/homebrew/bin/brew set up xcodeinstall
             - sudo -u ec2-user /choose/homebrew/bin/xcodeinstall obtain -s us-east-1 --name "Xcode 16.xip"
             - sudo -u ec2-user /choose/homebrew/bin/xcodeinstall set up --name "Xcode 16.xip"
  
  - identify: validate
    steps:
      - identify: TestXcode
        motion: ExecuteBash
        inputs:
          instructions:
            -  xcodebuild -version && xcode-select -p   

I exploit a instrument I wrote to obtain and set up Xcode from the command line. xcodeinstall integrates with AWS Secrets and techniques Supervisor to securely retailer authentication net tokens. Earlier than working the pipeline, I authenticate from my laptop computer with the command xcodeinstall authenticate -s us-east-1. This command begins a session with Apple server’s and shops the session token in Secrets and techniques Supervisor. xcodeinstall makes use of this token through the picture creation pipeline to obtain Xcode.

Once you use xcodeinstall with Secrets and techniques Supervisor, you should give permission to your pipeline to entry the secrets and techniques. Right here is the coverage doc I added to the position connected to the EC2 occasion utilized by EC2 Picture Builder (within the following infrastructure configuration).

{
	"Sid": "xcodeinstall",
	"Impact": "Enable",
	"Motion": [
            "secretsmanager:GetSecretValue"
            "secretsmanager:PutSecretValue"
        ],
	"Useful resource": "arn:aws:secretsmanager:us-east-1::secret:xcodeinstall*"
}

To check and debug these parts domestically, with out having to attend for lengthy cycle to begin and recycle the EC2 Mac occasion, you need to use the AWS Job Orchestrator and Executor (AWSTOE) command.

Step 2: Create a recipe
The following step is to create a recipe. On the console, I choose Picture recipes and Create picture recipe.

I choose macOS as the bottom Picture Working System. I select macOS Sonoma ARM64 as Picture identify.

Within the Construct parts part, I choose the Xcode 16 part I simply created throughout step 1.

Lastly, I be sure the quantity is giant sufficient to retailer the working system, Xcode, and my builds. I often choose a 500 Gb gp3 quantity.

Image Builder - Create a recipe

Steps 3 and 4: Create the pipeline (and the infrastructure configuration)
On the EC2 Picture Builder web page, I choose Picture pipelines and Create picture pipeline. I give my pipeline a reputation and choose a Construct schedule. For this demo, I choose a handbook set off.Image Builder - Create Pipeline 1

Then, I choose the recipe I simply created (Sonoma-Xcode).

Image Builder - Create Pipeline 2

I selected Default workflows for Outline picture creation course of (not proven for brevity).

I create or choose an current infrastructure configuration. Within the context of constructing macOS photos, you need to allocate Amazon EC2 Devoted Hosts first. That is the place I select the occasion sort that EC2 Picture Builder will use to create the AMI. I can also optionally choose my digital personal cloud (VPC), safety group, AWS Id and Entry Administration (IAM) roles with permissions required through the preparation of the picture, key pair, and all of the parameters I often choose after I begin an EC2 occasion.

Image Builder - Create Pipeline 4

Lastly, I choose the place I wish to distribute the output AMI. By default, it stays on my account. However I may share or copy it to different accounts.

Image Builder - Create Pipeline 5

Run the pipeline
Now I’m able to run the pipeline. I choose Picture pipelines, then I choose the pipeline I simply created (Sonoma-Xcode). From the Actions menu, I choose Run pipeline.

Image Builder - launch pipeline

I can observe the progress and the detailed logs from Amazon CloudWatch.

After some time, the AMI is created and able to use.

Image Builder - AMI build succeeded

Testing my AMI
To complete the demo, I begin an EC2 Mac occasion with the AMI I simply created (keep in mind to allocate a Devoted Host first or to reuse the one you used for EC2 Picture Builder).

As soon as the occasion is began, I hook up with it utilizing safe shell (SSH) and confirm that Xcode is appropriately put in.

Image Builder - Connect to new AMI

Pricing and availability
EC2 Picture Builder for macOS is now out there in all AWS Areas the place EC2 Mac situations can be found: US East (Ohio, N. Virginia), US West (Oregon), Asia Pacific (Mumbai, Seoul, Singapore, Sydney, Tokyo), and Europe (Frankfurt, Eire, London, Stockholm) (not all Mac occasion sorts can be found in all Areas).

It comes at no further value, and also you’re solely charged for the assets in use through the pipeline execution, particularly the time your EC2 Mac Devoted Host is allotted, with a minimal of 24 hours.

The preview of macOS help in EC2 Picture Builder means that you can consolidate your picture pipelines, automate your golden picture creation processes, and use the advantages of cloud-focused integrations on AWS. Because the EC2 Mac platform continues to develop with extra occasion sorts, this new functionality positions EC2 Picture Builder as a complete answer for picture administration throughout Home windows, Linux, and macOS.

Create your first pipeline at present! 

— seb



Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles