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
posta 10 mesi fa228 visualizzazioni
1 Risposta
1
Risposta accettata

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
ESPERTO
con risposta 10 mesi fa
  • Awesome thanks Didier, I will give that a try!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande