aws ec2 list-snapshots-in-recycle-bin
Lists one or more snapshots that are currently in the Recycle Bin. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To view snapshots in the Recycle Bin
The following list-snapshots-in-recycle-bin example lists information about snapshots in the Recycle Bin, including the snapshot ID, a description of the snapshot, The ID of the volume from which the snapshot was created, the date and time when the snapshot was deleted and it entered the Recycle Bin, and the date and time when the retention period expires.
aws ec2 list-snapshots-in-recycle-bin --snapshot-ids snap-01234567890abcdefIdentify--snapshot-idsThe IDs of the snapshots to list.Its output
{
"Snapshots": [
{
"Description": "Monthly data backup snapshot",
"RecycleBinEnterTime": "2022-12-01T13:00:00.000Z",
"RecycleBinExitTime": "2022-12-15T13:00:00.000Z",
"VolumeId": "vol-abcdef09876543210",
"SnapshotId": "snap-01234567890abcdef"
}
]
}For more information about Recycle Bin, see Recover deleted snapshots from the Recycle Bin in the Amazon EBS User Guide.
Options
--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--max-resultsThe maximum number of items to return for this request.--next-tokenThe token returned from a previous paginated request.--snapshot-idsThe IDs of the snapshots to list.