Step-by-step visual guide on deploying a Flask application on AWS EC2
Published in
6 min readJun 8, 2020
Flask is a framework which many people learn as their first web framework as it is simple, lightweight and easy to learn.
AWS is one of the most popular cloud services available today, providing amazing solutions for many different problems which businesses face.
In this tutorial, I will give a visual guide on how you can deploy your first Flask application on to AWS. Lets geddittt!!
- AWS Console Account
- Understanding of Flask
- Bit of experience in Linux
Overview of the steps
- Create an Ubuntu EC2 on AWS
- SSH into Ubuntu EC2
- Create/Clone Flask app inside EC2
- Run Gunicorn WSGI server to serve the Flask Application
- Use systemd to manage Gunicorn
- Run Nginx Webserver to accept and route request to Gunicorn