ec2-reset-image-attribute
Syntax
ec2-reset-image-attribute
ami_id
-l
Description
Resets an attribute for the specified AMI.
The productCodes attribute cannot be reset.
Options
Option | Description | Required |
---|---|---|
| The identifier that was assigned to the AMI when it was registered. Example: | Yes |
| Resets the Example: | Yes |
Output
Amazon EC2 returns a table that contains the following information:
Attribute type identifier
ID of the AMI on which the attribute is being reset
Action identifier ("RESET")
Amazon EC2 displays errors on stderr
.
Example
This example resets the launchPermission
attribute.
PROMPT>
ec2-reset-image-attribute ami-6ba54002 -l
launchPermission ami-6ba54002 RESET