ec2-reset-image-attribute

ec2-reset-image-attribute ami_id -l

Resets an attribute for the specified AMI.

The productCodes attribute cannot be reset.

OptionDescriptionRequired

ami_id

The identifier that was assigned to the AMI when it was registered.

Example: r-15a4417c

Yes

-l

Resets the launchPermission attribute.

Example: -l

Yes

Amazon EC2 returns a table that contains the following information:

Amazon EC2 displays errors on stderr.

This example resets the launchPermission attribute.

$ ec2-reset-image-attribute ami-6ba54002 -l
launchPermission ami-6ba54002 RESET