How to Confirm an Instance Is Running with a Product Code
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 instance is running an AMI associated with your product code
-
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.