Skip to content

Instantly share code, notes, and snippets.

@siigna
siigna / cleanup-ecr.rb
Created December 26, 2018 23:01 — forked from dmerrick/cleanup-ecr.rb
Delete old ECR images
#!/usr/bin/env ruby
# this script will delete ECR images that are older than N days
require 'date'
require 'json'
# customize this script
repo = 'snapdocs'
delete_if_older_than = 60 # days

Keybase proof

I hereby claim:

  • I am siigna on github.
  • I am siigna (https://keybase.io/siigna) on keybase.
  • I have a public key whose fingerprint is 5343 8E30 F22B 58FB 12BF 7019 F888 59E4 A1EE CA97

To claim this, I am signing this object: