I'd like to be able to extract information about the current elastic beanstalk environment from my EC2 instance, so that I can include this information in error emails sent from my servers.
For instance, knowing the current environment's name, and the version label of the deployed code would all be useful. Does anyone know away to do this programatically? I know there is already an API for retrieving EC2 info such as public hostname and AMI-id etc, but I can't find anything for elastic beanstalk.
Currently my solution is to manually set some environment variables that my app can read, but obviously this is cumbersome.