View Amazon EBS snapshot information
You can view detailed information about your snapshots using one of the following methods.
- Console
-
To view snapshot information using the console
Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/
. -
In the navigation pane, choose Snapshots.
-
To view only your snapshots that you own, in the top-left corner of the screen, choose Owned by me. You can also filter the list of snapshots using tags and other snapshot attributes. In the Filter field, select the attribute field, and then select or enter the attribute value. For example, to view only encrypted snapshots, select Encryption, and then enter
true
. -
To view more information about a specific snapshot, choose its ID in the list.
- Amazon CLI
-
To view snapshot information using the command line
You can use one of the following commands. For more information about these command line interfaces, see Access Amazon EC2.
-
describe-snapshots (Amazon CLI)
-
Get-EC2Snapshot (Amazon Tools for Windows PowerShell)
Example 1: Filter based on tags
The following command describes the snapshots with the tag Stack=production.
aws ec2 describe-snapshots --filters Name=tag:
Stack
,Values=production
Example 2: Filter based on volume
The following command describes the snapshots created from the specified volume.
aws ec2 describe-snapshots --filters Name=volume-id,Values=
vol-049df61146c4d7901
Example 3: Filter based on snapshot age
With the Amazon CLI, you can use JMESPath to filter results using expressions. For example, the following command displays the IDs of all snapshots created by your Amazon account (represented by
123456789012
) before the specified date (represented by2020-03-31
). If you do not specify the owner, the results include all public snapshots.aws ec2 describe-snapshots --filters Name=owner-id,Values=
123456789012
--query "Snapshots[?(StartTime<='2020-03-31
')].[SnapshotId]" --output textThe following command displays the IDs of all snapshots created in the specified date range.
aws ec2 describe-snapshots --filters Name=owner-id,Values=
123456789012
--query "Snapshots[?(StartTime>='2019-01-01
') && (StartTime<='2019-12-31
')].[SnapshotId]" --output text -