Is it possible to export the table view of EBS Snapshots?

0

Hi there

I want to export the table that shows all the details relating to my snapshots for compliance reasons. Seen here: ec2 > Elastic Block Store > Snapshots

I don't need to download the individual snapshots, I just need to be able prove at audit that they have been running (should I be asked).

Anyone know if this is possible?

Thanks in advance

Steph
asked 9 months ago219 views
1 Answer
1
Accepted Answer

Hi, it is very simple to obtain it via the CLI with describe snaphots: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-snapshots.html

You will obtain a list with such items:

{
    "Snapshots": [
        {
            "Description": "Snap A",
            "Encrypted": false,
            "VolumeId": "vol-01234567890aaaaaa",
            "State": "completed",
            "VolumeSize": 8,
            "StartTime": "2021-09-07T21:00:00.000Z",
            "Progress": "100%",
            "OwnerId": "123456789012",
            "SnapshotId": "snap-01234567890aaaaaa",
            "StorageTier": "archive",
            "Tags": []
        },
    ]
}

if you don't want json but prefer table : you can choose 'table' in --output option

--output (string)

The formatting style for command output.

json
text
table
yaml
yaml-stream

Best, Didier

profile pictureAWS
EXPERT
answered 9 months ago
  • Awesome thanks Didier, I will give that a try!

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions