Uploaded May 2022 | Updated September 2026, 21 minutes ago
In this video, I'll show you how to deploy a Python FastAPI application to an AWS EC2 instance, so that your API becomes publicly accessible on the internet.
👉 Previous FastAPI Tutorial: youtube.com/watch?v=34cqrIp5ANg
👉 Code: github.com/pixegami/fastapi-tutorial
👉 SSH to EC2 from Windows: stackoverflow.com/questions/5264945/ssh-to-ec2-linux-instance-from-windows
👉 AWS: aws.amazon.com
👉 FastAPI: fastapi.tiangolo.com
👉 FastAPI on AWS Lambda: youtu.be/RGIM4JfsSk0
00:00 Introduction
00:30 Launch an EC2 instance
04:06 Connect to your EC2 instance
05:35 Install pip and NGINX
06:20 Route API traffic with NGINX
09:06 Run the FastAPI server
11:39 Testing the API
13:01 Terminate the EC2 instance
#fastapi #aws #pixegami
🎨 Background vector created by GarryKillian
freepik.com/vectors/background
In this video, I'll show you how to deploy a Python FastAPI application to an AWS EC2 instance, so that your API becomes publicly accessible on the internet.
👉 Previous FastAPI Tutorial: youtube.com/watch?v=34cqrIp5ANg
👉 Code: github.com/pixegami/fastapi-tutorial
👉 SSH to EC2 from Windows: stackoverflow.com/questions/5264945/ssh-to-ec2-linux-instance-from-windows
👉 AWS: aws.amazon.com
👉 FastAPI: fastapi.tiangolo.com
👉 FastAPI on AWS Lambda: youtu.be/RGIM4JfsSk0
00:00 Introduction
00:30 Launch an EC2 instance
04:06 Connect to your EC2 instance
05:35 Install pip and NGINX
06:20 Route API traffic with NGINX
09:06 Run the FastAPI server
11:39 Testing the API
13:01 Terminate the EC2 instance
#fastapi #aws #pixegami
🎨 Background vector created by GarryKillian
freepik.com/vectors/background










