Useful paths for debugging Elastic Beanstalk deployments

Sometimes it can be painful to try and get an Elastic Beanstalk application to deploy cleanly. In order to effectively debug the issues, it’s necessary to SSH into the instance. This requires that you’ve added a Key Pair in the EB environment configuration before launching the instance(s). The address to SSH to can be found in your EC2 management console.

Once on the server, these paths are useful in debugging:

  • /var/app/current/ – This is where your application source code is.
  • /opt/elasticbeanstalk/hooks/appdeploy/post – If you’ve used post deployment scripts, this is where they are. Note that any post deployment scripts from any previous deployments to the same instance will be left here even if your latest configuration does not have those scripts!
  • /var/log/eb-activity.log – “tail -f /var/log/eb-activity.log” in order to get a live feed about how your deployment is going.
  • This entry was posted in IT. Bookmark the permalink.

    Leave a Reply

    Your email address will not be published. Required fields are marked *