Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add a reaper command to clean up AWSBoxes #85

Open
mostlygeek opened this Issue Jul 19, 2013 · 0 comments

Comments

Projects
None yet
1 participant

the command will work like:

./awsbox.js reap

It will have the default behavior of:

  • looking for instances tagged with AWSBOX (#38)
  • tagging instances with AWSBOX_REAP, which will be a local timestamp of when the box should be terminated
  • allowing awsboxes to live for 7 days
  • sends an email notifications to owners, identified by AWSBOX_OWNER on this schedule:
    • welcome email AWSBOX (never been touched), notifies them at the box will be shutdown in 7 days
    • 2 days before shutdown, notification that their AWSBOX will be shutdown
    • 1 day before, another notification
    • day of, terminates the instance

To prevent reaping of an AWSBOX, the reaper will respect two tags:

  • AWSBOX_SPAREME - will spare the box for 7 more days. Removes this tag and updates AWSBOX_REAP to a new date in the future
  • AWSBOX_NOKILL - never kills the AWSBOX

@mostlygeek mostlygeek added a commit to mostlygeek/awsbox that referenced this issue Jul 19, 2013

@mostlygeek mostlygeek Merge branch '#86-ec2-cli-env' into #85-reaper 2ceba94

@mostlygeek mostlygeek added a commit to mostlygeek/awsbox that referenced this issue Jul 19, 2013

@mostlygeek mostlygeek Merge branch '#86-ec2-cli-parity' into #85-reaper 9922b69

@mostlygeek mostlygeek added a commit to mostlygeek/awsbox that referenced this issue Jul 19, 2013

@mostlygeek mostlygeek #85 improve filtering of AWSBOX logic e6b0d08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment