Python Forum
Cannot get AWS Elastic Beanstalk Flask app to work
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot get AWS Elastic Beanstalk Flask app to work
#1
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,
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020