A ruby script for cleaning up stale EC2 instances based on tags and age
gem install aws-sdk
- Create a config.yml file in harbinger's directory with your AWS credentials. If you run harbinger.rb without this file, it'll tell you what to do. The 'Amazon EC2 Full Access' template has sufficient permissions.
- On ruby < 1.9, you'l need to add
require 'rubygems'
beforerequire 'aws-sdk'
in harbinger.rb.