ec2-modify-snapshot-attribute

Description

Adds or remove permission settings for the specified snapshot.

Syntax

ec2-modify-snapshot-attribute snapshot_id -c [--add entity | --remove entity]

Options

NameDescriptionRequired

snapshot_id

The ID of the snapshot.

Type: String

Default: None

Example: snap-78a54011

Yes

-c

Modifies the create volume permissions of the snapshot.

Type: String

Default: None

Example:

Yes

--add entity

Adds a permission for the specified AWS account or for all users.

Type: String

Valid Values: AWS account identifier | all

Default: None

Example: --launch-permission --add all

--remove entity

Removes a permission for the specified AWS account or for all users.

Type: String

Valid Values: AWS account identifier | all

Default: None

Example: --launch-permission --remove all

Output

The command returns a table that contains the following information:

  • createVolumePermission Identifier

  • Snapshot ID

  • User IDs or 'all'

  • Attribute type identifier

  • ID of the snapshot on which attributes are being modified

  • Action performed on the attribute

  • Attribute or attribute list item value type

  • Attribute or attribute list item value

Amazon EC2 displays errors on stderr.

Examples

Example Request

This example makes the snap-78a54011 snapshot public.

PROMPT> ec2-modify-snapshot-attribute snap-7ddb6e14 -c --add 123456789012
createVolumePermission snap-7ddb6e14 ADD userId 123456789012