colinbjohnson/aws-missing-tools — pull request #26 by anujbiyani (2013-04-17 21:27:52+00:00)
Title: Suspend certain processes

I noticed sometimes while running aws-ha-release.sh it would claim it failed but in fact the instances did successfully cycle. While digging into this, I realized that an alarm for scaling down the number of instances was triggering and killing an instance after the second one came up but before aws-ha-release had the chance to see that it was there.

The script, therefore, would see consistently see 1 instance even though the running instances was new and the old one was already killed.

To fix this, I decided to suspend the AutoScaling processes that aren't necessary for this script and leave the rest running; it seems to be more reliable, now.

I also added support for multiple load balancers. Each created instance must be reported as healthy from all load balancers before the script will continue (just in case each load balancer has a different health check). Resolves https://github.com/colinbjohnson/aws-missing-tools/issues/10