Many of us know that one of the most important services of AWS is Elastic beanstalks. We deployed our application on Beanstalk and AWS itself manage most of the thing in it. One of them is Logs of Applications.
People usually were not able to see the tail of the logs of the application what they need to do is to go to the beanstalk and under logs, they ask for the last 100 lines of logs or full logs (which include the of the application along with the other logs ).
Today we will learn how to connect with the beanstalk application through EB CLI and see the logs.
let's follow the below steps.
define the Python Home in your Environment Variable.
Now select the region you have deployed your application.
Once your application will be created you will see below screen.
You need to select the appropriate platform you have used for your application.
Now you have successfully created your SSH and it is uploaded to your beanstalk as well.
you need to attach the SSH with the Application.
You will get the list of options then it will ask for the keypair which you need to attach.
After selecting the one you will be asked to enter the password set earlier.
You will then have the Applicaiton connected.
Once connected successfully you will be getting below image.
I Hope you will be able to connect your local machine to EB , If you have any issue ,Please leave us a comment we will look into it.