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
質問済み 9ヶ月前207ビュー
1回答
1
承認された回答

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
エキスパート
回答済み 9ヶ月前
  • Awesome thanks Didier, I will give that a try!

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ