Step-by-step visual guide on deploying a Flask application on AWS EC2

Kim Huiyeon
Tech Front
Published in
6 min readJun 8, 2020

--

Deploy Flask Application on AWS

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!!

  1. AWS Console Account
  2. Understanding of Flask
  3. Bit of experience in Linux

Overview of the steps

  1. Create an Ubuntu EC2 on AWS
  2. SSH into Ubuntu EC2
  3. Create/Clone Flask app inside EC2
  4. Run Gunicorn WSGI server to serve the Flask Application
  5. Use systemd to manage Gunicorn
  6. Run Nginx Webserver to accept and route request to Gunicorn

--

--

Kim Huiyeon
Tech Front

Software Developer | Incoming Analyst at Goldman Sachs | Writer