ec2-confirm-product-instance product_code -i instance_id
product_code
instance_id
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.
true
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.
Instance identifier that was generated when the instance launched.
Example: i-10a64379
i-10a64379
Yes
The product code.
Example: 774F4FF8
774F4FF8
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.
stderr
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
PROMPT>
774F4FF8 i-10a64379 true
ec2-modify-image-attribute
Submit feedback about this site to: