ec2-confirm-product-instance
Description
Verifies whether a Amazon DevPay product code is associated with an instance. This can only be executed by the owner of the AMI and is useful when an AMI owner wants to verify whether a user's instance is eligible for support.
Syntax
ec2-confirm-product-instance
product_code
-i instance_id
Options
Name | Description | Required |
---|---|---|
|
The product code to confirm. Type: String Default: None Example: 774F4FF8 |
Yes |
|
The instance to confirm. Type: String Default: None Example: i-10a64379 |
Yes |
Output
The command 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.
Examples
Example Request
This example describes the confirms the product code is associated with the instance.
PROMPT>ec2-confirm-product-instance 774F4FF8 -i i-10a64379
774F4FF8i-10a64379 true