Discover Snapshots

Discover snapshots of EBS volumes based on specified criteria.

Source codePermissions

Only snapshots owned by the account are returned.

Usage

Input

Parameter Description Type Required Default Value
volume_ids Get snapshots that originate from specific volumes list(string) No All volumes
snapshot_ids Snapshot IDs to focus on list(string) No All snapshots
unencrypted Get only unencrypted snapshots bool No False
exclude_aws_backup Exclude snapshots managed by AWS Backup bool No False
created_before Get snapshots created before date (YYYY/MM//DD) string No None
created_after Get snapshots created after date (YYYY/MM//DD) string No 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 discovered snapshot IDs:

['snap-1234567890abcdef0', 'snap-abcdef1234567890']

Examples

Fetch all snapshots in eu-west-2:

aaws ec2 discover_snapshots --region eu-west-2

Fetch snapshots created before 2024/01/01 and not managed by AWS Backup:

aaws ec2 discover_snapshots --exclude__aws_backup --created_before 2024/01/01