Build a REST API (CRUD) with AWS Lambda, API Gateway & DynamoDB Using Python | Step-by-Step Guide

  Рет қаралды 8,093

Tech with Hitch

Tech with Hitch

Күн бұрын

In this tutorial, you'll learn how to build a fully functional CRUD (Create, Read, Update, Delete) API using AWS Lambda, API Gateway, and DynamoDB with Python.
Lambda Python Code: (Copy & paste this into Lambda ) github.com/hitchon1/AWS_RestL...
In this vide we will cover:
-We will create a REST API in API gateway with several different endpoint and all the CRUD methods
-Write python code in Lambda to process all methods and resources part of the API Gateway
-Creating a dynamoDB table to store data from our API
-Create the IAM roles to use cloudwatch and dynamoDB
0:00 Intro to Architecture
0:45 Create DynamoDB Table
1:22 Create the Lambda Handler
1:51 Creating the IAM Role
2:30 API Gateway
3:10 Creating API Gateway Resources & Methods
7:00 The Lambda Code
10:58 Postman: Creating post for Employee (Adding entries to the table)
13:37 Debugging in Cloudwatch logs
14:20 Postman: GET
15:16 Postman: PATCH
16:40 Postman: DELETE
17:25 Outro
#awstutorial #awslambda #restapis

Пікірлер: 15
@laythabdulkareem1887
@laythabdulkareem1887 4 ай бұрын
YOU ARE AMAZING YOU ARE AMAZING YOU ARE AMAZING This short video summarizes many topics which needs hours to be explained.
@nickdrinkwater2044
@nickdrinkwater2044 Ай бұрын
This is a great tutorial, super straight forward and easy to understand, thank you!!
@andrewlin6600
@andrewlin6600 Ай бұрын
You covered it all, great vid!
@EnjoyGames_
@EnjoyGames_ 11 күн бұрын
This tutorial really worked for me, keep it up! :)
@rakeshthakur4103
@rakeshthakur4103 2 ай бұрын
Great work..thanks ❤❤❤❤
@PeterWhite-ru6qk
@PeterWhite-ru6qk 3 ай бұрын
First out of many that have actually worked, thank you so much.
@Hitchon
@Hitchon 3 ай бұрын
Great 👍 glad you got things working!
@tech_channel110
@tech_channel110 Ай бұрын
Nice one
@mv1597
@mv1597 2 ай бұрын
This was a massive help with my uni assignment. Thanks and keep it up!
@Hitchon
@Hitchon 2 ай бұрын
You too wish you good luck and success with your studies !
@regilearn2138
@regilearn2138 12 күн бұрын
please use react for future project
@neerajmanral7093
@neerajmanral7093 4 ай бұрын
I am not getting the http method in event and if i print the event it only prints the payload.. i want to fetch the http method but i am unable to do that
@baotranngoc7986
@baotranngoc7986 7 ай бұрын
Thank you, the video instructions are very specific and detailed. I have a question, if I change the body in postman to x-www-urlencoded, which code in the lambda should I change and how? Can you guide me, thank you.
@Hitchon
@Hitchon 7 ай бұрын
Hi, Thanks for watching :) you'll need to make a few changes in the way the Lambda function parses the request body in POST, PATCH, and DELETE. Let me show you POST as an example, So You'll need this -> from urllib.parse import parse_qs And then you will need to replace -> response = save_employee(json.loads(event['body'])) With the following code: parsed_body = parse_qs(event['body']) for key in parsed_body: parsed_body[key] = parsed_body[key][0] response = save_employee(parsed_body) I have not tested it but I think above would help achieve what you need. Hope this helps!
@baotranngoc7986
@baotranngoc7986 6 ай бұрын
@@Hitchon Thank you very much. Hope you can release more aws tutorial videos, I'm looking forward to them.
AWS Lambda & EventBridge: Mastering Scheduled Tasks (Cron Jobs)
4:42
Tech with Hitch
Рет қаралды 1,1 М.
AWS Lambda Python functions with a database (DynamoDB)
25:12
pixegami
Рет қаралды 25 М.
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 2,3 МЛН
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 78 МЛН
OMG😳 #tiktok #shorts #potapova_blog
00:58
Potapova_blog
Рет қаралды 4,1 МЛН
AWS API Gateway to Lambda Tutorial in Python | Build a REST API
11:17
Be A Better Dev
Рет қаралды 333 М.
Terraform AWS Api gateway + Lambda Integration 🚀
28:08
AWS cloud demos
Рет қаралды 1 М.
AWS API Gateway to Lambda Tutorial in Python | Build a HTTP API (2/2)
27:35
Create Your First AWS Lambda Function | AWS Tutorial for Beginners
12:44
Tiny Technical Tutorials
Рет қаралды 128 М.
Using Python to Automate AWS Services | Lambda and EC2
24:10
Travis Media
Рет қаралды 25 М.
Webhooks Processing: HTTP API Gateway + SQS +Lambda
13:02
Alex Rusin
Рет қаралды 13 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 40 МЛН
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 57 МЛН
#miniphone
0:16
Miniphone
Рет қаралды 3,7 МЛН