| Did this page help you? Yes No Tell us about it... |
Adds or remove permission settings for the specified snapshot.
The short version of this command is ec2msnapatt.
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: -c |
Yes |
|
|
Adds a permission for the specified AWS account or for all accounts. Type: String Valid Values: Default: None Example: -c --add all | |
|
|
Removes a permission for the specified AWS account or for all accounts. Type: String Valid Values: Default: None Example: -c --remove all |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
createVolumePermission Identifier
Snapshot ID
Account 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 command line tools display 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