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
gefragt vor 10 Monaten228 Aufrufe
1 Antwort
1
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 10 Monaten
  • Awesome thanks Didier, I will give that a try!

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen