ec2-confirm-product-instance
Syntax
ec2-confirm-product-instance
product_code
-i instance_id
Description
Returns a Boolean value that indicates whether the specified product code is
attached to the specified instance. If it is attached, It returns true
.
Otherwise, it returns false
.
Only the AMI owner can execute this command. This is useful when an AMI owner is providing support and wants to verify whether a user's instance is eligible.
Options
Option | Description | Required |
---|---|---|
| Instance identifier that was generated when the instance launched. Example: | Yes |
| The product code. Example: | Yes |
Output
Amazon EC2 returns a table that contains the following information:
Product code.
Instance ID.
Boolean value indicating if the product code is attached to the instance.
The instance owner's account ID (if the product code is attached).
Amazon EC2 displays errors on stderr
.
Example
This example confirms whether the 774F4FF8
product code is attached to the i-10a64379
instance.
PROMPT>
ec2-confirm-product-instance 774F4FF8 -i i-10a64379
774F4FF8 i-10a64379 true