If you have created a product for others to use with their AMIs (the supported AMI scenario), you might want to confirm that a particular AMI is associated with your product code and a particular instance is currently running that AMI.
![]() | Note |
|---|---|
You must be the owner of the product code to successfully call ec2-confirm-product-instance with that product code. Because your customers don't own the product code, they should describe their instances to confirm their instances are running with your product code. |
To confirm an AMI is associated with your product code and an instance is running that AMI
Enter the following command:
PROMPT>ec2-confirm-product-instance<product_code>-i<instance>
The <product_code> is the product code and <instance> is the instance.
If the AMI is associated with the product code, true is returned with the AMI owner's
account ID. Otherwise, false is returned.
Example
The following example confirms whether the i-10a64379 instance is running the 6883959E product code.
PROMPT>ec2-confirm-product-instance6883959E i-10a64379 true 4952199331326883959E-ii-10a64379