Adds or remove permission settings for the specified snapshot.
ec2-modify-snapshot-attribute
snapshot_id -c [--add entity |
--remove entity]
| Name | Description | Required |
|---|---|---|
|
|
The ID of the snapshot. Type: String Default: None Example: snap-78a54011 |
Yes |
|
|
Modifies the create volume permissions of the snapshot. Type: String Default: None Example: |
Yes |
|
|
Adds a permission for the specified AWS account or for all users. Type: String Valid Values: Default: None Example: --launch-permission --add all | |
|
|
Removes a permission for the specified AWS account or for all users. Type: String Valid Values: Default: None Example: --launch-permission --remove all |
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.
This example makes the snap-78a54011 snapshot public.
PROMPT>ec2-modify-snapshot-attribute snap-7ddb6e14 -c --add 123456789012createVolumePermission snap-7ddb6e14 ADD userId 123456789012