AWS Lambda & DynamoDB - AWS Serverless Part I

  Рет қаралды 170,118

Block Explorer

Block Explorer

5 жыл бұрын

Join us in this video tutorial as we walk you through step-by-step how to write AWS Lambda functions in NodeJS to get and set data in DynamoDB.
Link to Serverless Architecture: AWS API Gateway & Lambda (part II of this series):
• AWS API Gateway & AWS ...
Completed tutorial code:
github.com/jspruance/cloudpat...
Intro to AWS Lambda with Python:
• Intro to AWS Lambda wi...
Originally published on 12/29/2018. Updated 1/3/2019.

Пікірлер: 155
@duyhieu7820
@duyhieu7820 4 жыл бұрын
8:22 - create role 9:13 - specify action 11:47 - lambda 23:29 - example code for getItem 26:11 - use json instead of dynamo json 29:52 - async / await 33:17 - put
@MichaelRainabbaRichardson
@MichaelRainabbaRichardson 4 жыл бұрын
40:35 forgot to confirm the return on a put after using a unique key.
@rainthstrive
@rainthstrive 3 жыл бұрын
Here I am, at 4am, following and successfully finishing this tutorial pleasantly and with a smile on my face. Sometimes I zone out following lenghty videos, but yours is super cohesive and easy to follow! Thank you so very much.
@kokoro5051
@kokoro5051 5 жыл бұрын
Thanks dude, this series is pretty good and solid. I love it.
@ryanrussell4071
@ryanrussell4071 4 жыл бұрын
You have a genuine gift for explaining concepts. Thank you so much for putting this together. I will be sharing this video at an upcoming Hackathon to help attendees set up their Lambda instances.
@reidyoung298
@reidyoung298 4 жыл бұрын
Thank you SOOOOOO much for this fantastic video. It deservers 10M views and a badge of honor. I appreciate all the effort that went into it. Loved the video. It's inspiring me to create a few of my own. All the best Cloud Path!
@ENCRYPTaBIT
@ENCRYPTaBIT 5 жыл бұрын
Wow I'm impressed. I'd buy this on Udemy for sure. But you're generous enough to give this out for free. Subscribed and liked!
@subhojeetsinha7865
@subhojeetsinha7865 3 жыл бұрын
Link to the Udemy course plsz
@maryotoole8270
@maryotoole8270 4 жыл бұрын
Awesome. This was so much more helpful that the Amazon online tutorials. Big help and thanks so much!
@alammahtab27
@alammahtab27 4 жыл бұрын
Nicely explained. I really like the pace of your explanation, you were calm and not like others who actually rushes to finish it off and make the story short. Well done
@leastros927
@leastros927 5 жыл бұрын
This was so helpful to me. I truly appreciate the video. It was very clear and concise as well as easy to follow. Thank you for your work!
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
really glad to hear that. thanks for your support!
@caiotony2037
@caiotony2037 2 жыл бұрын
Thanks too much!!! My permanency in my current job was saved
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
That's awesome...glad to hear that!
@johnblack8178
@johnblack8178 4 жыл бұрын
Thanks for that great tutorial, you have a nice voice to listen to. Thanks to you i understand the environment better.
@pragmaticcoder6910
@pragmaticcoder6910 4 жыл бұрын
God bless you! Thanks for giving this tutorial for free. I am preparing for new job and need knowledge on AWS Lambda. May God bless you and your family!
@SameeraAbeywickrama
@SameeraAbeywickrama 5 жыл бұрын
Wow, I wish I had found this earlier. Thanks man. Very useful and very well explained. I would love to see a tutorial on Serverless framework from you
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
thanks Sameera, glad you found it useful! i do have a 'Create a Serverless App' tutorial series available here: kzfaq.info/get/bejne/jK2Vpc5pzdi0aYk.html. anything else you'd like to see covered on this channel?
@drvoip
@drvoip 5 жыл бұрын
Excellent material! Most other folks say "Dine a Moe DB" !
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
thanks! i know somebody else pointed that out too, lol. trying to retrain my brain my mangled pronunciation : )
@firattamur1682
@firattamur1682 3 жыл бұрын
Best tutorial for lambda after long time of searching. Thank you!
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Love to hear that...thanks for the feedback!
@MrJohn360
@MrJohn360 5 жыл бұрын
Got so much value out of it, thanks for sharing.
@fanggladys9986
@fanggladys9986 4 жыл бұрын
exactly agree with Jacari. Also your voice is beautifully soothing
@dkkektmsnsndm2084
@dkkektmsnsndm2084 2 жыл бұрын
What a clear explanation, thank you sir. I really appreciate all the help you gave. Love respect.
@emmanuelwafwana5583
@emmanuelwafwana5583 4 жыл бұрын
The lesson is great. Probably the best i ever followed. Everything works at the end ;-). Thanks a lot!
@kamalbuqaileh8474
@kamalbuqaileh8474 4 жыл бұрын
You saved my day, THANK YOU SOOOO MUCH
@arunkumark
@arunkumark 4 жыл бұрын
Cool Video!! Explained Lambda & Dynamo DB working in excellent way!
@richardnguyen6141
@richardnguyen6141 4 жыл бұрын
Excellent explanation. I like your exceptional teaching skill.
@ritanshusingh4426
@ritanshusingh4426 3 жыл бұрын
You are a gem....... perfectly explained...love from india ❤️
@johnduriman8662
@johnduriman8662 2 жыл бұрын
Thank you for this, it was very easy to follow. Well made man!
@TheSmellOfCode
@TheSmellOfCode 5 жыл бұрын
Awesome videos. I like the pace and amount of details.
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
thanks, appreciate it : )
@andreapirola2737
@andreapirola2737 5 жыл бұрын
AMAZING! You are perfect to explain this
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
thanks Andrea...appreciate the support!
@holyproton8855
@holyproton8855 3 жыл бұрын
What an awesome tutorial, I learned a lot! Looks like the logs would have displayed the new item created if the ID is unique. With preexisting IDs it shows empty brackets.
@ankitsmit19
@ankitsmit19 4 жыл бұрын
Very nicely explained. Thanks for the tutorial.
@responseready7375
@responseready7375 4 жыл бұрын
You saved my day! I love you :)
@denkling
@denkling 4 жыл бұрын
Why is your video much better than the official AWS-videos?
@zachwhite8054
@zachwhite8054 4 жыл бұрын
Unreal tutorial. Thank you so much. Liked and subscribed.
@liangwang3356
@liangwang3356 4 жыл бұрын
very helpful for me to understand the basic operation of AWS.
@Hackenbaker
@Hackenbaker 4 жыл бұрын
Excelent!! More than excelent. Thanks for this class!!!
@michagoleniewski8074
@michagoleniewski8074 4 жыл бұрын
thanks man, im rookie in AWS and have to create app here :D great tut
@agnieszkadrabczyk4917
@agnieszkadrabczyk4917 4 жыл бұрын
Thank you so much for your videos. Your vioce is amazing and you explain very well. Thanks
@sasquatch2267
@sasquatch2267 5 жыл бұрын
Thanks for creating this! :)
@yogirajkouskiya1199
@yogirajkouskiya1199 5 жыл бұрын
Good. Thanks for the video. Appreciated.
@madChileRiver
@madChileRiver 3 жыл бұрын
Great tutorial/demo - thank you very much.
@ankur_upadhyay_
@ankur_upadhyay_ 4 жыл бұрын
Thank you ... it was amazing lesson and a detailed one ...appreciate
@hacmia8708
@hacmia8708 4 жыл бұрын
Fantastic tutorial, Thank you!
@cuzbo_
@cuzbo_ 4 жыл бұрын
Thanks for this. Great tutorial!
@shouldicallyoumista1167
@shouldicallyoumista1167 3 жыл бұрын
Very well explained. Subbed!
@no_one1500
@no_one1500 3 жыл бұрын
Thankssss complete detailss yet simple and efficient.... Thanksssss alotttt
@moathdlaimi150
@moathdlaimi150 3 жыл бұрын
God bless you, fantastic tutorial!
@bunyaminmercan5077
@bunyaminmercan5077 3 жыл бұрын
Awesome Tutorial. Super!
@wenhuiluo1900
@wenhuiluo1900 4 жыл бұрын
thank you, sir, this is very helpful.
@tamirsagi4544
@tamirsagi4544 4 жыл бұрын
Amazing Tutorial! thank you
@himadrithaker4857
@himadrithaker4857 4 жыл бұрын
Well explained every steps.. thanks
@robinkelmen6332
@robinkelmen6332 3 жыл бұрын
Great videos!!! Thank you so much.
@ManuelSavino
@ManuelSavino 4 жыл бұрын
Wow Amazing! You should honestly produce more content! Like another comment said, would definitely buy a Udemy course or any type of course from you.
@JangBahadur3028
@JangBahadur3028 Жыл бұрын
Kudos to the guy. Really knowledge ful video.
@BlockExplorerMedia
@BlockExplorerMedia Жыл бұрын
Thanks Jang glad you found it helpful.
@aakashkharche9429
@aakashkharche9429 3 жыл бұрын
Really Helped me alot👍
@godwincodes
@godwincodes 4 жыл бұрын
Very helpful video! Thanks
@ntokozomajozi2716
@ntokozomajozi2716 4 жыл бұрын
Great tutorial, thank you.
@bijarnia_vikash
@bijarnia_vikash 5 жыл бұрын
Good. Thanks for the video.
@illbet4589
@illbet4589 3 жыл бұрын
GREAT VIDEO ! Thank you.
@amberjones6191
@amberjones6191 4 жыл бұрын
Great teacher!
@almogcohen2858
@almogcohen2858 3 жыл бұрын
Great videos, thanks alot !
@jjurksztowicz
@jjurksztowicz 5 жыл бұрын
Very nice tutorial. +9000
@ayubadan3220
@ayubadan3220 4 жыл бұрын
Great Video Mate!
@tomdemey5606
@tomdemey5606 5 жыл бұрын
Thank you! :D
@MrMrMayday
@MrMrMayday 4 жыл бұрын
You saved my life
@JP-vg8vl
@JP-vg8vl 3 жыл бұрын
thank you for this video!
@prathameshmahangade8987
@prathameshmahangade8987 4 жыл бұрын
You are the best
@CTCCCCCCCC
@CTCCCCCCCC 3 жыл бұрын
Thank you so much dude!!!
@john-danson3113
@john-danson3113 4 жыл бұрын
Great work! Thanks Mister! Tidy it up. Could be 20 mins.
@syedimam1998
@syedimam1998 4 жыл бұрын
BRO U R just AWesomEEEEEE!!!!!!!!!!!!!!!!!!
@JayJugJones
@JayJugJones 4 жыл бұрын
nice tutorial
@reprovedcandy
@reprovedcandy Жыл бұрын
8:29 i love how it recommends the name so you know this wasnt his first take haha
@balajikesavan9933
@balajikesavan9933 3 жыл бұрын
thats a nice one
@hmnyari
@hmnyari 4 жыл бұрын
thank you so much !!!!!
@noneofourfinbusiness
@noneofourfinbusiness 4 жыл бұрын
Thanks for the video it helped me over the first hurdles. My next hurdle is to customize the query to return just the fields I want, and also related fields from other tables hopefully just like they do in GraphQL. I can't seem to find samples for lambda code using clientDocument or even the first way you did it. I found some examples using "ProjectionExpression" but...doesn't seem to be working. If you ever do a video on this I would enjoy it ;)
@christophermartinez1769
@christophermartinez1769 3 жыл бұрын
Thanks a lot
@RicardoChase894
@RicardoChase894 Жыл бұрын
The Best
@BlockExplorerMedia
@BlockExplorerMedia Жыл бұрын
Thanks Jiiiiiiiiang!
@daronwolff
@daronwolff 4 жыл бұрын
Thanks a lot
@oleersoy6547
@oleersoy6547 5 жыл бұрын
You rock!!
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
thanks for watching!
@manishpundir28
@manishpundir28 4 жыл бұрын
Thanks for the awesome video!👍 One question - Shouldn't the ids be auto generated uniquely for a new item? Otherwise how do we ensure not to pass an existing id? Do we need to look into DB each time?
@sahild6584
@sahild6584 Жыл бұрын
Thnx a ton
@q1dsdsdsq2dssdsd95
@q1dsdsdsq2dssdsd95 4 жыл бұрын
thank you for your videos! say, why dynamodb doesnt say that you try to rewrite existing in the table item?
@jahongirbozarov3135
@jahongirbozarov3135 4 жыл бұрын
Thank you so much for making this video! Helped me a lot, but could you please show us how to create new record ( I understand if id we are passing doesn't match with any existing user's id it will create new user ) but I was thinking to create lambda function using post not put ? Thanking in advance
@simpsonandrew9572
@simpsonandrew9572 3 жыл бұрын
Good demo! Is there a chance to do a get first and base on the result to do a put to the DB in one js ?
@TheBodysome
@TheBodysome 5 жыл бұрын
This is awesome, super simple and works out of the box (Ignoring my IAM issues). Do you have a twitter? oh also, Udemy Update?
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
i have a twitter account but haven't been using it much. Udemy...still working on that!
@nikwycherley9079
@nikwycherley9079 5 жыл бұрын
If you get an error at around 25:35 saying something like "unexpected s found in query" make sure the s in the ID object is set to a capital S.
@coltonjett5635
@coltonjett5635 5 жыл бұрын
i got a error saying " * MissingRequiredParameter: Missing required key 'HashKeyElement' in params.Key * UnexpectedParameter: Unexpected key 'id' found in params.Key " and i even copied word for word and had capital S driving me nuts.
@sach695
@sach695 4 жыл бұрын
This comment needs to be featured or pinned or something.
@DavidJJJ
@DavidJJJ 4 жыл бұрын
Just a note to say that you no longer need to specify the data type (ie. ‘S’) in your dynamodb object.
@bennychewDev
@bennychewDev 5 жыл бұрын
Thanks for creating your AWS series, these are very helpful! I'd be interested in a more in depth Udemy course of this if available. Now we are copy pasting the code from local to AWS, I wonder if it is possible to keep writing the Lambda functions locally and with one Terminal command, deploy it to AWS. Or is creating a zip of it the only way?
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
there should be a few options for deploying a lambda without copy/paste or zip upload. hope to cover this in a tutorial video soon.
@bennychewDev
@bennychewDev 5 жыл бұрын
@@BlockExplorerMedia I came across Serverless framework couple of days ago. Seems pretty interesting. May be what I was looking for. kzfaq.info/get/bejne/gr5yZbGnnt_LgZc.html
@devswami3159
@devswami3159 4 жыл бұрын
tq
@HemachandranM
@HemachandranM 5 жыл бұрын
That was a good session.. I have a very basic question. Is it possible to store an js object like output of `new AWS.TemporaryCredentials( )` in dynamodb using nodeJs implementation? If yes, is there any samples around it.
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
hi Hemachandran, yes you can store a JS object in Dynamo. i just tried to do it this way (from the DynamoDB docs) and it worked ok: docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB/DocumentClient.html#put-property Your json object would be the value of the 'Item.MapAttribute' property. The only thing I had to add was an id (my table required it as the primary key)
@nand0l
@nand0l 4 жыл бұрын
Hi In this video you are adding an String value, how would you add a "list" for an array or a "Map" for an object?
@shahinanishad2258
@shahinanishad2258 3 жыл бұрын
@Cloud Path, the AWS app course that you mentioned is available now in Udemy?
@perc-ai
@perc-ai 5 жыл бұрын
we need more serverless videos
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
hoping to have an aws cognito tutorial up by this weekend. let me know if you have any suggestions for other serverless videos and i'll add it to my queue.
@paothanh1344
@paothanh1344 4 жыл бұрын
hi there, how can you get all the data from the database, from this video it seems only get 1 at a time
@erlanggarakasatria9652
@erlanggarakasatria9652 4 жыл бұрын
i cant get my item from dynamoDB , and the response is : { "statusCode": 200, "body": "\"Hello from Lambda!\"" } can anyone help ?
@ralphdoecorp
@ralphdoecorp 3 жыл бұрын
I think we have a different version of Lambda in Browser. You need to save with File -> Save Option. Then click Deploy. And then you will be able to test successfully.
@padmavatibasarkode885
@padmavatibasarkode885 Жыл бұрын
hey can one lambda perform 2 operations ? for example writing in ddb and sending request to sqs/sts ?
@skkkks2321
@skkkks2321 3 жыл бұрын
Hi, thank you for this most needed videos series for the Data Engineers, do you have courses in Udemy? please share the link. Thanks for the amazing work.
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
Thanks...planning to do some Udemy courses in the future
@keithkinyua6815
@keithkinyua6815 4 жыл бұрын
how can i save my results to a postgres DB or dynamoDB after hitting an endpoint via a lambda function
@dohyun0047
@dohyun0047 4 жыл бұрын
Awesome too bad i couldn't flow you because teacher didn't let me configure IAM stuff ㅠㅠ
@ba-en1io
@ba-en1io 4 жыл бұрын
hey, is this series included in the free tier
@devzhy9687
@devzhy9687 Жыл бұрын
If I create a full-fledged app using AWS Lambda, do I have to create many roles and assign them manually for all the functions I create? Seems tiring.
@imaxshen
@imaxshen 3 жыл бұрын
Hi, I created a new AWS account and followed everything you demonstrated in your video. But when I tried to create a Lambda function, I got "Missing Authentication Token" error. I tried to google the error msg, but almost all the result pages are related to AWS API Gateway. Does anyone hit same issue previously? Any workaround? Thanks a lot
@tigermk_nft
@tigermk_nft 2 жыл бұрын
I notice we hard coded the users in our code, what if we just want to retrieve the data say from an ip without hard coding the user names.
@JP-vg8vl
@JP-vg8vl 3 жыл бұрын
please make a tutorial on how to send data from AWS IoT to DynamoDB using Lambda
Intro to AWS Lambda with Python | AWS Lambda Python Tutorial
32:01
Block Explorer
Рет қаралды 258 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 55 МЛН
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 108 МЛН
Always be more smart #shorts
00:32
Jin and Hattie
Рет қаралды 50 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,7 МЛН
AWS Lambda Python functions with a database (DynamoDB)
25:12
pixegami
Рет қаралды 25 М.
AWS API Gateway Integration | AWS Serverless tutorial | Part III
29:33
Serverless Framework with AWS Lambda Crash Course
1:29:11
Laith Academy
Рет қаралды 109 М.
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Software Developer Diaries
Рет қаралды 73 М.
AWS API Gateway Websocket Tutorial With Lambda | COMPLETELY SERVERLESS!
19:07
Introduction to AWS Lambda & Serverless Applications
56:02
Amazon Web Services
Рет қаралды 312 М.
Building a Serverless REST API in .NET with AWS Lambda
20:13
Nick Chapsas
Рет қаралды 75 М.
Clicks чехол-клавиатура для iPhone ⌨️
0:59
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 660 М.
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,1 МЛН