Deploy Python Flask Web Server on AWS


You can use this as a starting point for deploying a Python Flask server on AWS using Deployment.io.

Deployment

  1. Fork deployment-io/flask-hello-world on GitHub.
  2. Create new Web Service on Deployment.io.
  3. Connect and add the forked repository.
  4. Select Python as the runtime.
  5. Input port number as 8000 since our server runs on that port. Change it according to your code.
  6. Input health check path as / . Change it according to your code.
  7. We autodetect the Build command using NixPacks. Use the following value for Start command: gunicorn app:app . Change it according to your code.

Your Python Flask web server will be available on your AWS ALB URL in the dashboard as soon as the build finishes.