Skip to content Skip to sidebar Skip to footer

I Get Errors When Trying To Run My Flask App In Aws Lambda

I am trying to deploy a flask app that run very well locally to AWS Lambda using severless. The deployment is good but I can't use the aws lambda app . I get an error 502 Bad Gatew

Solution 1:

Can you try packaging & installing your module in a containerised lambda env.

As sometimes modules packed in windows will not work on other os.

I had a similar issue with psycopg2 then installed and packaged in lambci docker and everything was working fine.

Post a Comment for "I Get Errors When Trying To Run My Flask App In Aws Lambda"