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
demandé il y a 9 mois212 vues
1 réponse
1
Réponse acceptée

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
répondu il y a 9 mois
  • Awesome thanks Didier, I will give that a try!

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions