Skip to content

Instantly share code, notes, and snippets.

@heywbj
heywbj / gist:da10d99f66df6361db9f
Last active March 1, 2016 16:26
Get Elastic beanstalk environment information
import boto.utils
import boto.beanstalk
good_statuses = ('Launching', 'Updating', 'Ready')
def get_eb_environment_description():
identity_document = boto.utils.get_instance_identity()['document']
connection = boto.beanstalk.connect_to_region(identity_document['region'])
envs = (e for e in