Confirming an Instance Is Running an AMI Associated 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]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

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-instance 6883959E -i i-10a64379
		
6883959E i-10a64379 true 495219933132