title: How can I find out the Elastic Beanstalk environment a given EC2 instance is running on from the CLI?
body: <p>I have an application deployed to Elastic Beanstalk with the Mutli-Container Docker configuration, which is backed by ECS and further backed by EC2. When I SSH onto the EC2 instance, is there some command I can run to identify the name of the EB application / environment that it's running under? Is there anything like <code>aws elasticbeanstalk get-current-environment</code>?</p>