Paying for AMIs

This section describes how to discover paid AMIs, launch paid AMIs, and launch instances with support product codes. Paid AMIs are AMIs you can purchase from other developers.

There are several ways you can determine what paid AMIs are available for you to purchase. You can look for information about them on the the Amazon EC2 resource center and forums. Alternatively, a developer might give you information about a paid AMI directly.

You can also tell if an AMI is a paid AMI by describing the image with the ec2-describe-images command. This command lists product codes associated with the AMI (see the example below). If the AMI is a paid AMI, it has a product code associated with it. Otherwise, it does not. You can then go to the Amazon EC2 resource center and forums, which might have more information about the paid Amazon EC2 and where you can sign up to use it.

The example below shows an ec2-describe-images call describing a paid AMI. The product code is exampleamiid;.

$ ec2-describe-images ami-5bae4b32
IMAGE ami-5bae4b32 awesome-ami/webserver.manifest.xml 495219933132 available private 774F4FF8

This section describes how to discover paid AMIs, launch paid AMIs, and launch instances with support product codes. Paid AMIs are AMIs you can purchase from other developers.

The paid AMI feature also makes it possible for developers to offer support for software (or derived AMIs). Developers can create support products that you can sign up to use. With this model, the support provider provides you with a product. As described above, you must first sign up for this product. During sign-up, you are given a product code, which you must then associate with your own AMI. This allows the support provider 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 developer's terms for the product.

To associate the product code with your AMI, use the ec2-modify-image-attribute command. Once set, this attribute cannot be changed or removed.

PROMPT>  ec2-modify-image-attribute ami-5bae4b32 --product-code 774F4FF8
productCodes        ami-5bae4b32            productCode   774F4FF8 

No extra parameters are required for the run instances call. The instance will be charged according to the rates set by the owner of the product.

$ ec2-run-instances ami-5bae4b32
INSTANCE i-10a64379 ami-5bae4b32 pending

A product owner can confirm that an instance qualifies for support by calling ec2-confirm-product-instance. Given a product code and an instance ID, this command returns true to indicate the instance is running with the specified product code. You must own the product code passed to the ec2-confirm-product-instance command.

PROMPT>  ec2-confirm-product-instance 6883959E -i i-10a64379
6883959E i-10a64379 true 495219933132