Serverless Python on AWS
In this project, we'll be deploying a serverless webapp using Python on AWS Lambda, AWS S3, and AWS API Gateway.
Serverless apps allow us to focus on code and forget about nearly all infrastructure.
AWS Lambda makes it easy to run serverless pass and using API Gateway we'll turn our app into a REST API.
The app we're going to build is just a simple workflow and requires no web framework. Here's what it will be able to do:
- Trigger a scraping event
- Upload scraped items to S3
- Load scraped results as a REST API resource
We'll be using the only following Python 3.8 packages for this to work:
- Pandas
- Numpy
- Pytz
- Requests
- BeautifulSoup4
That's it.
If you'd like to deploy Django, Flask, FastAPI, or any other web framework to AWS Lambda. You should check out Try Zappa as it covers the depths you can go with AWS Lambda and serverless on AWS.
Lessons
1
Welcome
2:09
2
Setup AWS CLI
9:54
3
Prepare IAM account for using S3
16:18
4
Your First Serverless App on AWS Lambda
9:32
5
Create a REST API with API Gateway
6:14
6
Working on a AWS Lambda Function Locally
8:01
7
Zip and Push to AWS S3
4:49
8
Update IAM Lambda Policy for Local Dev
4:42
9
Deploy Third Party Modules like Pandas and Numpy
13:16
10
Basic Route Handling inside Lambda
6:43
11
Scrape and Save to S3
20:18
12
Thank you and next steps
3:54