ec2-reset-image-attribute

Description

Resets an attribute of an AMI to its default value.

[Note]Note

The productCodes attribute cannot be reset.

Syntax

ec2-reset-image-attribute ami_id -l

Options

NameDescriptionRequired

ami_id

ID of the AMI on which the attribute will be reset.

Type: String

Default: None

Example: ami-15a4417c

Yes

-l, --launch-permission

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