Paid AMIs - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Paid AMIs

A paid AMI is an AMI that you can purchase from a developer.

Amazon EC2 integrates with Amazon Web Services Marketplace, enabling developers to charge other Amazon EC2 users for the use of their AMIs or to provide support for instances.

The Amazon Web Services Marketplace is an online store where you can buy software that runs on Amazon, including AMIs that you can use to launch your EC2 instance. The Amazon Web Services Marketplace AMIs are organized into categories, such as Developer Tools, to enable you to find products to suit your requirements. For more information about Amazon Web Services Marketplace, see the Amazon Web Services Marketplace website.

Launching an instance from a paid AMI is the same as launching an instance from any other AMI. No additional parameters are required. The instance is charged according to the rates set by the owner of the AMI, as well as the standard usage fees for the related web services, for example, the hourly rate for running an m1.small instance type in Amazon EC2. Additional taxes might also apply. The owner of the paid AMI can confirm whether a specific instance was launched using that paid AMI.

Important

Amazon DevPay is no longer accepting new sellers or products. Amazon Web Services Marketplace is now the single, unified e-commerce platform for selling software and services through Amazon. For information about how to deploy and sell software from Amazon Web Services Marketplace, see Selling in Amazon Marketplace. Amazon Web Services Marketplace supports AMIs backed by Amazon EBS.

Sell your AMI

You can sell your AMI using Amazon Web Services Marketplace. Amazon Web Services Marketplace offers an organized shopping experience. Additionally, Amazon Web Services Marketplace also supports Amazon features such as Amazon EBS-backed AMIs, Reserved Instances, and Spot Instances.

For information about how to sell your AMI on the Amazon Web Services Marketplace, see Selling in Amazon Marketplace.

Find a paid AMI

There are several ways that you can find AMIs that are available for you to purchase. For example, you can use Amazon Web Services Marketplace, the Amazon EC2 console, or the command line. Alternatively, a developer might let you know about a paid AMI themselves.

To find a paid AMI using the console
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose AMIs.

  3. Choose Public images for the first filter.

  4. In the Search bar, choose Owner alias, then =, and then aws-marketplace.

  5. If you know the product code, choose Product code, then =, and then enter the product code.

Find a paid AMI using Amazon Web Services Marketplace

To find a paid AMI using Amazon Web Services Marketplace
  1. Open Amazon Web Services Marketplace.

  2. Enter the name of the operating system in the search field, and then choose the search button (magnifying glass).

  3. To scope the results further, use one of the categories or filters.

  4. Each product is labeled with its product type: either AMI or Software as a Service.

Find a paid AMI using the Amazon CLI

You can find a paid AMI using the following describe-images command (Amazon CLI).

aws ec2 describe-images --owners aws-marketplace

This command returns numerous details that describe each AMI, including the product code for a paid AMI. The output from describe-images includes an entry for the product code like the following:

"ProductCodes": [ { "ProductCodeId": "product_code", "ProductCodeType": "marketplace" } ],

If you know the product code, you can filter the results by product code. This example returns the most recent AMI with the specified product code.

aws ec2 describe-images --owners aws-marketplace \ --filters "Name=product-code,Values=product_code" \ --query "sort_by(Images, &CreationDate)[-1].[ImageId]"

Purchase a paid AMI

You must sign up for (purchase) a paid AMI before you can launch an instance using the AMI.

Typically a seller of a paid AMI presents you with information about the AMI, including its price and a link where you can buy it. When you click the link, you're first asked to log into Amazon, and then you can purchase the AMI.

Purchase a paid AMI using the console

You can purchase a paid AMI by using the Amazon EC2 launch wizard. For more information, see Launch an Amazon Web Services Marketplace instance.

Subscribe to a product using Amazon Web Services Marketplace

To use the Amazon Web Services Marketplace, you must have an Amazon account. To launch instances from Amazon Web Services Marketplace products, you must be signed up to use the Amazon EC2 service, and you must be subscribed to the product from which to launch the instance. There are two ways to subscribe to products in the Amazon Web Services Marketplace:

  • Amazon Web Services Marketplace website: You can launch preconfigured software quickly with the 1-Click deployment feature.

  • Amazon EC2 launch wizard: You can search for an AMI and launch an instance directly from the wizard. For more information, see Launch an Amazon Web Services Marketplace instance.

Get the product code for your instance

You can retrieve the Amazon Web Services Marketplace product code for your instance using its instance metadata. For more information about retrieving metadata, see Instance metadata and user data.

To retrieve a product code, use the following command:

IMDSv2
[ec2-user ~]$ TOKEN=`curl -X PUT "http://169.254.169.254/latest/api/token" -H "X-aws-ec2-metadata-token-ttl-seconds: 21600"` \ && curl -H "X-aws-ec2-metadata-token: $TOKEN" http://169.254.169.254/latest/meta-data/product-codes
IMDSv1
[ec2-user ~]$ curl http://169.254.169.254/latest/meta-data/product-codes

If the instance has a product code, Amazon EC2 returns it.

Use paid support

Amazon EC2 also enables developers to offer support for software (or derived AMIs). Developers can create support products that you can sign up to use. During sign-up for the support product, the developer gives you a product code, which you must then associate with your own AMI. This enables the developer to confirm that your instance is eligible for support. It also ensures that when you run instances of the product, you are charged according to the terms for the product specified by the developer.

Important

You can't use a support product with Reserved Instances. You always pay the price that's specified by the seller of the support product.

To associate a product code with your AMI, use one of the following commands, where ami_id is the ID of the AMI and product_code is the product code:

  • modify-image-attribute (Amazon CLI)

    aws ec2 modify-image-attribute --image-id ami_id --product-codes "product_code"
  • Edit-EC2ImageAttribute (Amazon Tools for Windows PowerShell)

    PS C:\> Edit-EC2ImageAttribute -ImageId ami_id -ProductCode product_code

After you set the product code attribute, it cannot be changed or removed.

Bills for paid and supported AMIs

At the end of each month, you receive an email with the amount your credit card has been charged for using any paid or supported AMIs during the month. This bill is separate from your regular Amazon EC2 bill. For more information, see Paying for products in the Amazon Web Services Marketplace Buyer Guide.

Manage your Amazon Web Services Marketplace subscriptions

On the Amazon Web Services Marketplace website, you can check your subscription details, view the vendor's usage instructions, manage your subscriptions, and more.

To check your subscription details
  1. Log in to the Amazon Web Services Marketplace.

  2. Choose Your Marketplace Account.

  3. Choose Manage your software subscriptions.

  4. All your current subscriptions are listed. Choose Usage Instructions to view specific instructions for using the product, for example, a user name for connecting to your running instance.

To cancel an Amazon Web Services Marketplace subscription
  1. Ensure that you have terminated any instances running from the subscription.

    1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

    2. In the navigation pane, choose Instances.

    3. Select the instance, and then choose Instance state, Terminate instance.

    4. Choose Terminate when prompted for confirmation.

  2. Log in to the Amazon Web Services Marketplace, and choose Your Marketplace Account, then Manage your software subscriptions.

  3. Choose Cancel subscription. You are prompted to confirm your cancellation.

    Note

    After you've canceled your subscription, you are no longer able to launch any instances from that AMI. To use that AMI again, you need to resubscribe to it, either on the Amazon Web Services Marketplace website, or through the launch wizard in the Amazon EC2 console.