ec2-reset-snapshot-attribute

Description

Resets permission settings for the specified snapshot.

Syntax

ec2-reset-snapshot-attribute snapshot_id

Options

NameDescriptionRequired

--snapshot snapshot

The ID of the snapshot.

Type: String

Default: None

Example: snap-78a54011

No

-c

Resets the create volume permissions of the snapshot.

Type: String

Default: None

Example:

Yes

Output

The command returns a table that contains the following information:

  • Snapshot ID

  • 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 permissions for snap-78a54011, making it a private snapshot that can only be used by the account that created it.

PROMPT> ec2-reset-snapshot-attribute snap-7ddb6e14 
createVolumePermission snap-7ddb6e14 RESET