If get fails, we exceeded API rate of amazon
@@ -105,7 +105,12 @@ def main():
''' Fetch the load balancers and make sure this instance is within them '''
+ try:
elbs = elb.get_all_load_balancers()
+ except:
+ print "Rate limit reached, skipping."
+ exit()
+
instance_id = get_instance_id()
instance_missing = 0
