I solved 502 bad gateway error in nodejs application deployment on elastic beanstalk

I solved 502 bad gateway error in nodejs application deployment on elastic beanstalk

2023.04.20

This article was published more than one year ago. Please be aware that the information may be outdated.

Problem

I was trying to deploy my Nodejs application in Elastic Beanstalk but I keep a 502 Bad Gateway error.

I checked the health causes

How I solved it

When uploading your code to the elastic beanstalk, it is expected to be zipped.

I zipped all my files excluding the node_modules and it worked perfectly.

Hope this helps someone in deploying your application to elastic beanstalk

Share this article

AWSのお困り事はクラスメソッドへ

Related articles