How To Build a CRUD (TO-DO) App on AWS using FastAPI and Python

preview_player
Показать описание
In this tutorial, you'll learn how to build and deploy a CRUD application (a "To-Do List" API) using Python, FastAPI and AWS. The application will be hosted serverlessly on the cloud, and will persist "to-do" (task) data for different users. We'll also write integration tests for our API using PyTest.

🛠 Essential Links

📚 Resources

💡 Related Videos

📽 Chapters
00:00 CRUD app architecture
01:40 What are we building?
03:13 Infrastructure with AWS CDK
05:45 Creating the DynamoDB table
09:56 Create the AWS Lambda function
14:09 Creating a Lambda function URL
16:04 Deploying our CDK infrastructure
18:52 Python FastAPI application code
20:44 Package our Python dependencies for Lambda
24:49 Implement CRUD operations
36:45 Testing our CRUD API by hand
38:37 Writing integration tests with PyTest
43:22 Wrapping up

📷 Image by starline on Freepik

#fastapi #aws
Рекомендации по теме
Комментарии
Автор

What type of app do you want to learn to build next? Let me know!💡

pixegami
Автор

Wow im blown away by how helpful these tutorials are. Clear speaking, insightful instruction. Insane these dont have 1m views

eqinxwy
Автор

This was an excellent video and very helpful in getting up and running with FastAPI and Lambda. Perhaps you could do a follow-up video that makes the code ready for a production setup. Maybe additional error handling, user management, API authn, etc?

aamirm
Автор

How to set the version of pydantic I want to install on lambda? My deploy goes well but the API does not work, when I test on lambda it shows the message "Runtime.ImportModuleError: Unable to import module 'todo': No module named 'pydantic'" thank you bro

odanilomedeiros
Автор

You are creating amazing contents man...Subscribed!❤❤

md.musfiqurrahaman
Автор

Take a look over AWS SAM to automatize the process of upload the python code to AWS Lambda instead of create the .Zip by hand

idcarlos
Автор

Do we have to pay for any service ?? I would like to know before I start the project or I have to leave it in between . 😭.

chillvibes
Автор

@pixegami Great Tutorial, thanks but...Lambda is restricted to 6MB of data per function. So if you have an endpoint that has to return a lot of data, won't this fail? Would your other video where we just run FastApi on an EC2 instance be preferable (even though we have to manage scaling ourselves etc)

snap-reviewsdotcom
Автор

Can you make a video about EC2, ASG, LB, Target Group etc configurations by coding or yaml. Because ı always see console or ui page configurations but in enterprise life we need to create all these configuration with deployment script.

tayfunslife
Автор

Hi Pixegami! I'm looking a way to host a SPA made with react, I don't want to manage all the server related things and put it in a EC2, I see that i can do it from a S3 bucket or Amplify, which option you will recomend? (Even other not mention)

pacoluna
Автор

Nice video! What colour scheme are you using please?

JKhalaf
Автор

Instead of typesrcipt language I choose to go with python, but I'm getting the error of my unzipped file size is large and exceeds the limit of lambda so It is not able to run the application, I have tried deleting If there are unnecessary libraries I'm zipping and uploading, as well I have also tried first uploading the file as asset to S3 and then using S3 bucket for lambda function, still getting the same, Please guide me I have been stuck at this problem from 1 week, will wait for you reply, Thankyou Great content!

durgeshpatil