Skip to content

Instantly share code, notes, and snippets.

View bcoelho-kcom's full-sized avatar

Bruno Coelho bcoelho-kcom

View GitHub Profile
@kjoconnor
kjoconnor / delete_snapshots.py
Created November 6, 2013 21:33
boto script to delete snapshots matching a filter and older than X days
import sys
from boto.ec2 import connect_to_region
from datetime import datetime, timedelta
try:
days = int(sys.argv[1])
except IndexError:
days = 7