Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am davidxarnold on github.
* I am davidxarnold (https://keybase.io/davidxarnold) on keybase.
* I have a public key ASCFHFM2uNDZpZDrRAEYBXI9pgJ4UForhTFBvCGeRT7X6Ao
To claim this, I am signing this object:
@DavidXArnold
DavidXArnold / snapshots.py
Created July 12, 2017 16:47 — forked from Eyjafjallajokull/README.md
AWS EBS - Find unused snapshots - this script generates csv raport about snapshot usage
import re
import boto3
import csv
from botocore.exceptions import ClientError
ec2 = boto3.client('ec2')
def get_snapshots():
return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots']