Copy Snapshots
Create copies of EC2 snapshots in a target region.
If encrypt is set without kms_key_id, the default AWS managed key in the target region is used.
Snapshots are copied in batches of 20.
This default value can be increased through pending_limit.
Concurrent snapshot copy limits
Usage
Input
Parameter | Description | Type | Required | Default Value |
---|---|---|---|---|
snapshot_ids | List of EC2 snapshots to move | list(string) | Yes | None |
target_region | Target region for the snapshots | string | Yes | None |
pending_limit | Limit for concurrent snapshot copy operations | int | No | 20 |
encrypt | Encrypt the new snapshots | bool | No | False |
kms_key_id | KMS Key ID to use for snapshot encryption | string | If encrypt | None |
region | Region for operation. Leave blank for session default | string | No | Session Default |
debug | Increase log verbosity | bool | No | False |
silent | Decrease log verbosity | bool | No | False |
output | Output format table | string | No | None |
session | Established session | object | No | None |
Output
Returns a list
of snapshots copies:
['snap-1234567890abcdef0', 'snap-abcdef1234567890']
Examples
Create encrypted copies of snapshots in eu-west-2:
aaws ec2 copy_snapshots --snapshot_ids snap-1234567890abcdef0 snap-abcdef1234567890 --region eu-west-2 --target_region eu-west-2 --encrypt
Copy snapshots from eu-west-2 to us-east-1 and encrypt them with custom KMS key:
aaws ec2 copy_snapshots --snapshot_ids snap-1234567890abcdef0 snap-abcdef1234567890 --region eu-west-2 --target_region us-east-1 --encrypt --kms_key_id 1234abcd-12ab-34cd-56ef-1234567890ab