{"action":"opened","issue":{"url":"https://api.github.com/repos/dreamboxlearning/aws_see_spots_run/issues/2","labels_url":"https://api.github.com/repos/dreamboxlearning/aws_see_spots_run/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/dreamboxlearning/aws_see_spots_run/issues/2/comments","events_url":"https://api.github.com/repos/dreamboxlearning/aws_see_spots_run/issues/2/events","html_url":"https://github.com/dreamboxlearning/aws_see_spots_run/issues/2","id":68223053,"number":2,"title":"AZs can conflict when trying to maximize use in ELB... handle more gracefully and keep track of this via tags","user":{"login":"brandoconnor","id":2502520,"avatar_url":"https://avatars.githubusercontent.com/u/2502520?v=3","gravatar_id":"","url":"https://api.github.com/users/brandoconnor","html_url":"https://github.com/brandoconnor","followers_url":"https://api.github.com/users/brandoconnor/followers","following_url":"https://api.github.com/users/brandoconnor/following{/other_user}","gists_url":"https://api.github.com/users/brandoconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/brandoconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandoconnor/subscriptions","organizations_url":"https://api.github.com/users/brandoconnor/orgs","repos_url":"https://api.github.com/users/brandoconnor/repos","events_url":"https://api.github.com/users/brandoconnor/events{/privacy}","received_events_url":"https://api.github.com/users/brandoconnor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-13T23:58:26Z","updated_at":"2015-04-13T23:58:26Z","closed_at":null,"body":"It looks like I'll need an ELB tag-based management component here too. Trying to maximize the AZs an ELB uses can return the following if the region is constrained or being phased out:\r\n\r\n    2015-04-13 16:50:07,631 - INFO - health_enforcer.py - AZs for ELB don't include all potential AZs. Removing unusable zones and adding the rest now.`\r\n    2015-04-13 16:50:07,768 - ERROR - aws_ssr_common.pyc - Exception caught on line 261 of /usr/local/bin/health_enforcer.py: BotoServerError: 400 Bad Request\r\n    <ErrorResponse xmlns=\"http://elasticloadbalancing.amazonaws.com/doc/2012-06-01/\">\r\n      <Error>\r\n        <Type>Sender</Type>\r\n        <Code>ValidationError</Code>\r\n        <Message>The requested Availability Zone us-east-1c is constrained and cannot be used together with us-east-1d. Please retry your request by not choosing us-east-1c and us-east-1d together.    </Message>\r\n      </Error>\r\n      <RequestId>d078706a-e237-11e4-bff2-d377f14f4e7d</RequestId>\r\n    </ErrorResponse>\r\n\r\nSince there needs to be some coordination between which AZs are used between an ASG and its ELB, I think it's worth creating another script dedicated to managing ELBs and their tags."}}