Python Forum
Cannot get AWS Elastic Beanstalk Flask app to work - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Cannot get AWS Elastic Beanstalk Flask app to work (/thread-33959.html)



Cannot get AWS Elastic Beanstalk Flask app to work - Morkus - Jun-13-2021

Hello,

I've been working on this for a couple days but have gotten basically nowhere.

Following instructions I found, I created a zip file with two files:

1. Application.py (this is the Flask service with two app routes).
2. requirements.txt (from freeze -- all the dependencies).

The Application.py has all references = "Application" since AWS seems picky that way.

I then created an Elastic Beanstalk project on AWS, python, and uploaded the zip file with the two files above.

However, although things look OK for a while, it ends up with severe issues:

• 100.0 % of the requests are failing with HTTP 5xx.
• Initialization completed 85 seconds ago and took 4 minutes.
• Impaired services on all instances.

Severe
• 100.0 % of the requests are failing with HTTP 5xx.
• Following services are not running: web.

---

I would appreciate any ideas of what to try next.

I already tried including the "venv" folders, but that made no difference.

Thanks in advance,