ec2-reset-image-attribute ami_id -l
ami_id
Resets an attribute for the specified AMI.
The productCodes attribute cannot be reset.
The identifier that was assigned to the AMI when it was registered.
Example: r-15a4417c
r-15a4417c
Yes
-l
Resets the launchPermission attribute.
launchPermission
Example: -l
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.
stderr
This example resets the launchPermission attribute.
$ ec2-reset-image-attribute ami-6ba54002 -l launchPermission ami-6ba54002 RESET
$
launchPermission ami-6ba54002 RESET
ec2-modify-image-attribute
ec2-describe-image-attribute
Sharing AMIs
Submit feedback about this site to: