title: How to automatically deregister EC2 instance from AWS ELB on termination?
body: <p>If an EC2 instance is a member of an AWS Elastic Load Balancer (ELB), <strong>terminating this EC2 instance won't remove it from the ELB.</strong></p>
  
  <p>It will be marked as N/A, and out of service.
  Our monitoring system then notify us of unhealthy instances in the ELB.</p>
  
  <p>Our current solution is a boto script that polls and verify every ELB members, on a regular basis. That's working but that's a pull data architecture that bogs our AWS API throttling.</p>
  
  <p>Is there an option, that automatically removes terminated/missing instances from ELB ?
  Alternatively, is it possible on a pushed data (SQS, SNS) instead of pulling the data (API, w/boto) ?</p>