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

Clock Icon2023.04.20

この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

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

facebook logohatena logotwitter logo

© Classmethod, Inc. All rights reserved.