Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Ubuntu News] Attach an Ubuntu Pro subscription to your AWS Image Builder image
1

  1. Blog

  2. Article



Share the article

We are pleased to announce that you can now attach an Ubuntu Pro subscription directly to any base image in AWS Image Builder, allowing you to create enterprise-grade custom images from the get go.

Why this is important

Until now, getting Ubuntu Pro into a custom AMI (Amazon Machine Image) meant either starting from an Ubuntu Pro base image or manually applying a token during the build. You can now attach an Ubuntu Pro subscription to any base image directly in your build pipeline even if the base image is a non-Ubuntu Linux image.

This unlocks simpler and more flexible AMI builds: add Ubuntu Pro as just another component to the recipe, with no manual steps required. This makes Ubuntu Pro straightforward to integrate into CI/CD pipelines and automated provisioning workflows.

Quote:Note: Attaching Ubuntu Pro to a non-Ubuntu host only licenses the cluster to run Ubuntu Pro containers. It does not give the host access to Ubuntu Pro services like Expanded Security Maintenance, compliance hardening, or Kernel live patching.

Before you begin

Make sure you have the following in place:
  • An AWS account with permissions to use EC2 Image Builder and AWS Marketplace.

  • IAM permissions which allow Image Builder to access Marketplace components (
    Code:
    imagebuilder:GetComponent, aws-marketplace:Subscribe
    ).

  • A base image ready to use (EC2 Managed image, Marketplace AMI, or a custom AMI).

  • If your base image is Ubuntu,
    Code:
    ubuntu-pro-client
    should be installed for the Pro client to activate services on first boot.


How to get it

Step 1: Subscribe to the marketplace listing

Subscribe to the component that matches your target architecture:

Step 2: Create or edit an image recipe

You can do this using the AWS Web Console or the AWS CLI. The overall flow is the same:

  1. Create an image pipeline (or open an existing one).

  2. Create a new recipe or edit an existing one:
    1. Select a base image (EC2 Managed image, Marketplace AMI, or a custom image).

    2. Select the image name (the operating system to use as a base).

    3. Add user data if needed.

    4. Add your components – this is where the Upgrade to Ubuntu Pro component comes in. 



If you are using the AWS Web console, open the Source dropdown and select AWS Marketplace. This will display all available Marketplace components. Search for Ubuntu Pro and select the component that matches your base AMI architecture (AMD64 or ARM64).

If you are using AWS CLI, you will need to take note of the Ubuntu Pro component ARN to use it in your API call.

Step 3: Continue with the rest of the details as usual

The next step should be familiar: configure custom workflows, infrastructure details, and distribution settings.

Step 4: Build and distribute

Once you have added the Ubuntu Pro component to your recipe, the rest of the workflow follows the instructions of the standard Image Builder:

  1. Add any additional components for your own configurations and deployments.

  2. Configure a distribution setting (regions, AMI name, etc.).

  3. Configure a test pipeline (optional but recommended).

  4. Run the pipeline and let Image Builder produce the image.


Once the image is built, the Ubuntu Pro subscription will be attached to the resulting AMI as instance metadata. If your base image is Ubuntu and the Pro client is installed, the default Ubuntu Pro services will be activated on the next boot.

If you want to learn more in detail about how to build a recipe with the Ubuntu Pro component, read more in our official documentation page.

Validating your license

To confirm the Ubuntu Pro license was attached correctly, check whether the right Marketplace product code is present on your AMI.

Using the AWS console

Go to EC2 → AMIs, select your AMI, and look at the Product codes field in the details panel below. You should see one of the following:
  • Code:
    Marketplace:9bztusbna2lfuk6zw7upzdvsv
    — AMD64 images

  • Code:
    Marketplace:291iwywwdb7ujmih1x7z4l3my
    — Graviton (ARM64) images


Using the AWS CLI

Code:
[code]aws ec2 describe-images \   --owners self \   --query 'Images[*].{ImageId: ImageId, Name: Name, ProductCodes: ProductCodes[*].ProductCodeId}' \   --output text[/code]

Learn more

Related posts

[Image: Ubuntu-16.04-Pro-EoS.png]

Beyond the 10-year mark: Extending Ubuntu Pro 16.04 LTS security coverage



A decade ago, Canonical launched Ubuntu 16.04 LTS (codenamed “Xenial Xerus”). As a Long-Term Support (LTS) release, it comes with 5 years of standard security coverage, which...

Carlos Bravo

17 September 2026

[Image: Arduino-VENTUNO-Q-GA-announcement.png]

Arduino® VENTUNO™ Q is available for pre-order with Ubuntu pre-installed



London, UK – August 25, 2026 – Following our initial collaboration announcement in March 2026, Canonical and Arduino (a subsidiary of Qualcomm Technologies, Inc.) are excited...

Canonical

25 August 2026

[Image: Canonical-announces-the-Enterprise-Store.png]

Canonical announces the Enterprise Store as part of Ubuntu Pro



Canonical introduces a new way to manage software behind firewalls and in air-gapped environments with the Enterprise Store. The Enterprise Store makes software distribution...

Holly Hall

21 July 2026

[Image: memory-leak.jpg]

Tracing a memory leak bug in PID 1 and contributing an upstream fix: a Linux support story



How Canonical Support helped a global retail organization trace the cause for an unusual memory leak originating in PID 1. By investigating the issue across three separate...

Lidia Luna Puerta

17 July 2026
Reply



Forum Jump:


Users browsing this thread: 2 Guest(s)