AWS API Gateway to Lambda Tutorial in Python | Build a REST API

AWS API Gateway to Lambda Tutorial in Python | Build a REST API

Be A Better Dev

5 лет назад

352,327 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@phen2841
@phen2841 - 12.07.2022 17:38

What a fantastic tutorial! Great job!

Ответить
@vpshibin
@vpshibin - 21.07.2022 02:21

Great video. One small point. You mentioned about a syntax error in line 25, but doesn’t address that later in the video.

Ответить
@LocdnessMomster
@LocdnessMomster - 02.08.2022 08:24

How would a client access this programmatically?

Ответить
@legoman01
@legoman01 - 08.08.2022 19:22

Good tutorial. Tested and it works

Ответить
@jasper5016
@jasper5016 - 15.08.2022 20:33

Thanks so much.

Ответить
@WeberOficial
@WeberOficial - 26.08.2022 16:56

Please use snake_case in Python variables

Ответить
@franktumminello9166
@franktumminello9166 - 27.09.2022 16:22

Great video!

Ответить
@samjones0320
@samjones0320 - 27.09.2022 20:19

Excellent tutorial! Thank you very much! I am enjoying your channel a lot. I'm just starting out with AWS but I'm super curious about how things work and you're becoming my one stop shopping channel! Cheers!

Ответить
@trainsam22
@trainsam22 - 08.10.2022 01:25

can you give the code?

Ответить
@xammocoloniax
@xammocoloniax - 16.10.2022 17:15

As others already mentioned --- what's the fix for the line 25 syntax error that you said you'd get back to?

Ответить
@dineshdixit3306
@dineshdixit3306 - 19.10.2022 08:16

I have to create a REST Api using lambda.
The lambda function has to complete does two tasks 1. Verify OKTA JWT token
2. Make connection to Database and run a query and return result in JSON format.
Here Creating New DB connection each request takes time. How to resolve this issue.

Ответить
@Bigshotdata
@Bigshotdata - 13.11.2022 20:42

Great video super insightful thanks!

Ответить
@kathirjay9168
@kathirjay9168 - 22.11.2022 01:18

Informative video : how about also including how to troubleshoot errors . Get a "message" : "Internal server error" when hitting the API URL

Ответить
@ankitmishra7166
@ankitmishra7166 - 29.11.2022 00:01

Thanks for the video, it actually helped in solving my entire problem.
One question though, here the transactionResponse is like 1:1 mapping. how bout if function has a loop, and it returns more than 1 value, in that case how to get multiple values in a response object

Ответить
@cstanleyhns
@cstanleyhns - 04.12.2022 06:47

Well presented. Would be good to see the API Gateway raise an event to Event bridge and then Event bridge match to the Lambda and return the same way.

Ответить
@LuvxJacqu4li8e
@LuvxJacqu4li8e - 31.12.2022 03:42

Nice. Just in time. I just got done with Fast API.

Ответить
@LuvxJacqu4li8e
@LuvxJacqu4li8e - 31.12.2022 03:44

Hey mind lowering your course to $10 like everyone else.

Ответить
@prannoyroy5312
@prannoyroy5312 - 22.01.2023 20:12

Great video. One doubt I faced at work. How do you choose between having one big lambda function with Flask Python code internally handling all the routing for different endpoint v/s one seperate Python lambda(without Flask) for each Api gateway resource? Which is a better design and better performing?

Ответить
@alaaeddinekolli4178
@alaaeddinekolli4178 - 04.02.2023 22:11

Magnifique ! thanks for this tutorial

Ответить
@anyetitan8410
@anyetitan8410 - 04.02.2023 23:13

i cant find the lamda handler code can someone tell me where it is?

Ответить
@InfantGerald
@InfantGerald - 24.02.2023 03:43

Thanks

Ответить
@SabbirAhmed-ev4rz
@SabbirAhmed-ev4rz - 07.03.2023 08:08

thanks man for this amazing video
it helped me in completing my internship task
keep up the good work

Ответить
@s0ulseek3r
@s0ulseek3r - 17.03.2023 16:57

There's a '=' missing in the code: responseObject['headers'] = {}

Ответить
@zrqx
@zrqx - 21.03.2023 15:38

That was a concise tutorial. Thank you

Ответить
@gopalakrishnanp2046
@gopalakrishnanp2046 - 22.05.2023 07:57

Great explanation and good demo

Ответить
@drazaie
@drazaie - 09.06.2023 19:12

Great video! Looks like queryStringParameters doesnt work in AWS with the new Python 3.10. Any ideas how to correct this?

Ответить
@hunqiangng2511
@hunqiangng2511 - 21.06.2023 18:22

Hi , I would like to ask how to assign static ip address to APIGW ?

Ответить
@joedunder4439
@joedunder4439 - 27.06.2023 01:04

Thanks! Very helpful.

Ответить
@AllenAcosta-o6g
@AllenAcosta-o6g - 28.06.2023 07:23

Can someone please explain how the output that was returned (in the browser) was formatted with a : following the transactionID, type, amount and message and a " " surrounding 5, PURCHASE, 500 and Hello from Lambda land ? I don't see any formatting in the code related to the formatting in the output.

transactionID: "5"
type: "PURCHASE"
amount: "500"
message: "Hello from Lambda land"

Thank you in advance.

Ответить
@andrewiyer
@andrewiyer - 30.06.2023 01:16

why did you waste time showing you typing it all out. next time write the code before then talk us through it

Ответить
@vio4jesus
@vio4jesus - 02.07.2023 04:33

I get a forbidden error ;-(

Ответить
@egehanyorulmaz4965
@egehanyorulmaz4965 - 10.07.2023 03:24

Straight to the point. Thank you. I was wondering how we could add an authentication to the request as well. My request returns Missing Authentication Token. I don't want to make the API public as it is sending a separate request to a paid API.

Ответить
@ajith_e
@ajith_e - 17.07.2023 14:12

Simple and Effective, as always!!

Ответить
@mwault
@mwault - 23.07.2023 18:06

Would have been great if the example worked. Where is the authentication? Unsurprisingly I got "Missing Authentication Token'...

Ответить
@morenoaf
@morenoaf - 26.07.2023 23:44

Great explanation

Ответить
@davidk7212
@davidk7212 - 20.08.2023 22:57

Very efficient, straight to the point, extremely helpful. Thank you.

Ответить
@eliasperez5168
@eliasperez5168 - 24.08.2023 15:17

That’s some serious coding I have to get better at it

Ответить
@whchi9252
@whchi9252 - 10.10.2023 06:24

nice video, thanks

Ответить
@sraj7284
@sraj7284 - 04.12.2023 02:17

Hi, Thank you, this de-mystified some of the profoundness of the topic! Very well structured and explained... What is throwing me off, is whether there is a standard structure protocol for the event[] object? Similarly, why cant a straighforward JSON response be sent over through the lambda? Again, is there a standard structure for this responseObject[]? How and where is this responseObject declared?
Why can't the lamda return something like so:

return {
'statusCode': 200,
'body': json.dumps('Hello from Lambda!'),
'Name1':event['queryStringParameters']['param1']
'Name2':event['queryStringParameters']['param2']

}

Ответить
@beatalert123
@beatalert123 - 02.01.2024 20:41

Awesome video..!! I am planning to create ETL data pipes using lambda + API gateway and then use step functions or MWAA to orchestrate the Lambda.

Ответить
@Esamabdelhadi1982
@Esamabdelhadi1982 - 24.02.2024 04:35

for some reason i'm getting this error
{
"message": "Missing Authentication Token"
}
im not sure what im doing wrong, but i followed the step by step instructions

Ответить
@go_sh4627
@go_sh4627 - 24.02.2024 13:54

I love this, this is very straight forward. But as a beginner in the field of AWS I just want a clarification. The method you used, why GET and not POST method?

Ответить
@learndevtech
@learndevtech - 20.04.2024 11:57

This is the best exemplification I have ever seen so far. I could not find any other resources better than this channel.

Ответить
@fT_amer
@fT_amer - 22.04.2024 14:31

Thank you for this one

Ответить
@rajathkunder5162
@rajathkunder5162 - 05.06.2024 10:29

You saved me

Ответить
@erikngigi
@erikngigi - 23.07.2024 10:07

Excellent Tutorial. I'm currently learning how to use AWS Lambda and AWS API gateway to create a serverless USSD with Africa's Talking using python. Ideally I want to automate the entire process using Terraform.

Ответить
@aleandromatteoni2462
@aleandromatteoni2462 - 29.07.2024 04:56

By the way, watch out for the number of connections to your database if your rest api is getting a lot of traffic, they generate a new connection for each request, wich could stop you from access the databasw

Ответить
@shivavemula5300
@shivavemula5300 - 20.10.2024 10:05

Very simple explanation to the point .

Ответить