Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you get the Elastic Beanstalk Application Version in your application?

We want to be able to retrieve the elastic beanstalk application version in our PHP code. I don't see that EB passes it to us in any server configuration files, which I find it strange. Does anyone else know how we might be able to get this?

like image 563
Random5000 Avatar asked Nov 11 '13 16:11

Random5000


People also ask

How do I check my Elastic Beanstalk version?

For more information, see eb appversion in the EB CLI commands chapter. Open the Elastic Beanstalk console , and in the Regions list, select your AWS Region. In the navigation pane, choose Applications, and then choose your application's name from the list.

How do you get an Elastic Beanstalk instance?

Go to EC2 Management Console and then search instances by tag:elasticbeanstalk:environment-name with your Elastic Beanstalk environment name as the value. You can also look at DescribeInstancesHealth API which provides a paginated list of instance ids along with their health.

What is application in Elastic Beanstalk?

AWS Elastic Beanstalk is an easy-to-use service for deploying and scaling web applications and services developed with Java, . NET, PHP, Node. js, Python, Ruby, Go, and Docker on familiar servers such as Apache, Nginx, Passenger, and IIS.

Which OS does the current version of AWS Elastic Beanstalk use?

Elastic Beanstalk supports Graviton on 64bit Amazon Linux 2 for a variety of platform and branches.


1 Answers

At least for Docker containers - you can use the information stored in /opt/elasticbeanstalk/deploy/manifest.

like image 183
Georgij Avatar answered Oct 20 '22 22:10

Georgij