~darkmuggle-deactivatedaccount/ubuntu-on-ec2/ec2-publishing-scripts.instance-cleaner

Viewing all changes in revision 407.

  • Committer: Ben Howard
  • Date: 2012-01-03 19:22:19 UTC
  • Revision ID: ben.howard@canonical.com-20120103192219-t9wb98aji3y13xlh
This automates the task of cleaning up dangling instances caused by
failed EBS bundling.

This patch does two things:

1. run-instances-and-wait tags instances with a "TERMINATE" tag with a
        value two hours (7200 seconds) into the future.
2. instance-cleaner was added to be run as a cronjob. It checks all known
        AWS regions for instances with the "TERMINATE" tag and terminates
        any where the two hour value has been elapsed

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: