Skip to content

Instantly share code, notes, and snippets.

View mattamizer's full-sized avatar

Matthew Morrissey mattamizer

  • Comcast
  • Abington, PA
View GitHub Profile
@mattamizer
mattamizer / cleanup.py
Last active March 19, 2021 14:26 — forked from luhn/cleanup.py
An AWS Lambda function to delete old AMIs.
"""
Code adapted from and inspired by http://blog.ranman.org/cleaning-up-aws-with-boto3/.
"""
import os
import re
from datetime import datetime, timedelta
import boto3

Keybase proof

I hereby claim:

  • I am mattamizer on github.
  • I am mattamizer (https://keybase.io/mattamizer) on keybase.
  • I have a public key whose fingerprint is 3D10 72FB 44F2 84EF 15F6 F760 038D AC8F 5936 72BE

To claim this, I am signing this object: