ec2-confirm-product-instance

ec2-confirm-product-instance product_code -i instance_id

Returns a boolean indicating whether the specified product code is attached to the specified instance. If it is attached, It returns true. Otherwise, it returns false.

This command can only be executed by the AMI owner. This is useful when an AMI owner is providing support and wants to verify whether a user's instance is eligible.

OptionDescriptionRequired

instance_id

Instance identifier that was generated when the instance launched.

Example: i-10a64379

Yes

product_code

The product code.

Example: 774F4FF8

Yes

Amazon EC2 returns a table that contains the following information:

Amazon EC2 displays errors on stderr.

This example confirms whether the 774F4FF8 product code is attached to the i-10a64379 instance.

$ ec2-confirm-product-instance 774F4FF8 -i i-10a64379
774F4FF8 i-10a64379 true