ec2-reset-image-attribute
Description
Resets an attribute of an AMI to its default value.
Note | |
---|---|
The productCodes attribute cannot be reset. |
Syntax
ec2-reset-image-attribute
ami_id
-l
Options
Name | Description | Required |
---|---|---|
|
ID of the AMI on which the attribute will be reset. Type: String Default: None Example: ami-15a4417c |
Yes |
|
Describes the launch permissions of the AMI. Type: String Default: None Example: -l |
No |
Output
The command 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.
Examples
Example Request
This example resets the launchPermission
attribute.
PROMPT>ec2-reset-image-attribute ami-6ba54002 -l
launchPermission ami-6ba54002 RESET