AWS Lambda & DynamoDB - AWS Serverless Part I

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

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 5 жыл бұрын
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.
@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.
@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
@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.
@maryotoole8270
@maryotoole8270 4 жыл бұрын
Awesome. This was so much more helpful that the Amazon online tutorials. Big help and thanks so much!
@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!
@kokoro5051
@kokoro5051 5 жыл бұрын
Thanks dude, this series is pretty good and solid. I love it.
@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!
@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
@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!
@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: kzbin.info/www/bejne/jHjIo55undeDb7c. anything else you'd like to see covered on this channel?
@johnblack8178
@johnblack8178 4 жыл бұрын
Thanks for that great tutorial, you have a nice voice to listen to. Thanks to you i understand the environment better.
@holyproton8855
@holyproton8855 4 жыл бұрын
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.
@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!
@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
@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 : )
@arunkumark
@arunkumark 4 жыл бұрын
Cool Video!! Explained Lambda & Dynamo DB working in excellent way!
@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!
@richardnguyen6141
@richardnguyen6141 4 жыл бұрын
Excellent explanation. I like your exceptional teaching skill.
@kamalbuqaileh8474
@kamalbuqaileh8474 4 жыл бұрын
You saved my day, THANK YOU SOOOO MUCH
@johnduriman8662
@johnduriman8662 2 жыл бұрын
Thank you for this, it was very easy to follow. Well made man!
@ritanshusingh4426
@ritanshusingh4426 3 жыл бұрын
You are a gem....... perfectly explained...love from india ❤️
@denkling
@denkling 4 жыл бұрын
Why is your video much better than the official AWS-videos?
@TheSmellOfCode
@TheSmellOfCode 5 жыл бұрын
Awesome videos. I like the pace and amount of details.
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
thanks, appreciate it : )
@michagoleniewski8074
@michagoleniewski8074 4 жыл бұрын
thanks man, im rookie in AWS and have to create app here :D great tut
@ankitsmit19
@ankitsmit19 4 жыл бұрын
Very nicely explained. Thanks for the tutorial.
@responseready7375
@responseready7375 4 жыл бұрын
You saved my day! I love you :)
@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.
@andreapirola2737
@andreapirola2737 5 жыл бұрын
AMAZING! You are perfect to explain this
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
thanks Andrea...appreciate the support!
@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!!!
@agnieszkadrabczyk4917
@agnieszkadrabczyk4917 4 жыл бұрын
Thank you so much for your videos. Your vioce is amazing and you explain very well. Thanks
@zachwhite8054
@zachwhite8054 4 жыл бұрын
Unreal tutorial. Thank you so much. Liked and subscribed.
@caiotony2037
@caiotony2037 2 жыл бұрын
Thanks too much!!! My permanency in my current job was saved
@BlockExplorerMedia
@BlockExplorerMedia 2 жыл бұрын
That's awesome...glad to hear that!
@ankur_upadhyay_
@ankur_upadhyay_ 4 жыл бұрын
Thank you ... it was amazing lesson and a detailed one ...appreciate
@sasquatch2267
@sasquatch2267 5 жыл бұрын
Thanks for creating this! :)
@madChileRiver
@madChileRiver 3 жыл бұрын
Great tutorial/demo - thank you very much.
@hacmia8708
@hacmia8708 4 жыл бұрын
Fantastic tutorial, Thank you!
@cuzbo_
@cuzbo_ 4 жыл бұрын
Thanks for this. Great tutorial!
@wenhuiluo1900
@wenhuiluo1900 4 жыл бұрын
thank you, sir, this is very helpful.
@yogirajkouskiya1199
@yogirajkouskiya1199 5 жыл бұрын
Good. Thanks for the video. Appreciated.
@tamirsagi4544
@tamirsagi4544 4 жыл бұрын
Amazing Tutorial! thank you
@himadrithaker4857
@himadrithaker4857 4 жыл бұрын
Well explained every steps.. thanks
@moathdlaimi150
@moathdlaimi150 3 жыл бұрын
God bless you, fantastic tutorial!
@no_one1500
@no_one1500 3 жыл бұрын
Thankssss complete detailss yet simple and efficient.... Thanksssss alotttt
@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 ;)
@bunyaminmercan5077
@bunyaminmercan5077 3 жыл бұрын
Awesome Tutorial. Super!
@ntokozomajozi2716
@ntokozomajozi2716 4 жыл бұрын
Great tutorial, thank you.
@shouldicallyoumista1167
@shouldicallyoumista1167 3 жыл бұрын
Very well explained. Subbed!
@robinkelmen6332
@robinkelmen6332 3 жыл бұрын
Great videos!!! Thank you so much.
@aakashkharche9429
@aakashkharche9429 3 жыл бұрын
Really Helped me alot👍
@godwincodes
@godwincodes 4 жыл бұрын
Very helpful video! Thanks
@bijarnia_vikash
@bijarnia_vikash 5 жыл бұрын
Good. Thanks for the video.
@build2scale579
@build2scale579 2 жыл бұрын
Another vedio on dynamo db core concepts required for production env to create sacalable , high performing db - kzbin.info/www/bejne/o4Sao4Fph9yBhsk
@illbet4589
@illbet4589 3 жыл бұрын
GREAT VIDEO ! Thank you.
@amberjones6191
@amberjones6191 4 жыл бұрын
Great teacher!
@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?
@jjurksztowicz
@jjurksztowicz 5 жыл бұрын
Very nice tutorial. +9000
@john-danson3113
@john-danson3113 4 жыл бұрын
Great work! Thanks Mister! Tidy it up. Could be 20 mins.
@almogcohen2858
@almogcohen2858 3 жыл бұрын
Great videos, thanks alot !
@MrMrMayday
@MrMrMayday 4 жыл бұрын
You saved my life
@ayubadan3220
@ayubadan3220 4 жыл бұрын
Great Video Mate!
@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
@JangBahadur3028
@JangBahadur3028 Жыл бұрын
Kudos to the guy. Really knowledge ful video.
@BlockExplorerMedia
@BlockExplorerMedia Жыл бұрын
Thanks Jang glad you found it helpful.
@JP-vg8vl
@JP-vg8vl 4 жыл бұрын
thank you for this video!
@syedimam1998
@syedimam1998 4 жыл бұрын
BRO U R just AWesomEEEEEE!!!!!!!!!!!!!!!!!!
@tomdemey5606
@tomdemey5606 5 жыл бұрын
Thank you! :D
@prathameshmahangade8987
@prathameshmahangade8987 4 жыл бұрын
You are the best
@CTCCCCCCCC
@CTCCCCCCCC 3 жыл бұрын
Thank you so much dude!!!
@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 5 жыл бұрын
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.
@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!
@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 ?
@q1dsdsdsq2dssdsd95
@q1dsdsdsq2dssdsd95 4 жыл бұрын
thank you for your videos! say, why dynamodb doesnt say that you try to rewrite existing in the table item?
@JayJugJones
@JayJugJones 4 жыл бұрын
nice tutorial
@hmnyari
@hmnyari 4 жыл бұрын
thank you so much !!!!!
@balajikesavan9933
@balajikesavan9933 3 жыл бұрын
thats a nice one
@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?
@reprovedcandy
@reprovedcandy Жыл бұрын
8:29 i love how it recommends the name so you know this wasnt his first take haha
@sahild6584
@sahild6584 Жыл бұрын
Thnx a ton
@christophermartinez1769
@christophermartinez1769 3 жыл бұрын
Thanks a lot
@daronwolff
@daronwolff 4 жыл бұрын
Thanks a lot
@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
@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. kzbin.info/www/bejne/gomlY4Gsbt6ah8U
@keithkinyua6815
@keithkinyua6815 4 жыл бұрын
how can i save my results to a postgres DB or dynamoDB after hitting an endpoint via a lambda function
@oleersoy6547
@oleersoy6547 5 жыл бұрын
You rock!!
@BlockExplorerMedia
@BlockExplorerMedia 5 жыл бұрын
thanks for watching!
@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)
@shahinanishad2258
@shahinanishad2258 3 жыл бұрын
@Cloud Path, the AWS app course that you mentioned is available now in Udemy?
@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
@kikibonbon86
@kikibonbon86 4 жыл бұрын
At 28:00 I got an error: "self.configure is not a function" And I'm sure I have the exact same code (I checked every line 10 times 😂) Could you help me with that? Great video btw!
@padmavatibasarkode885
@padmavatibasarkode885 Жыл бұрын
hey can one lambda perform 2 operations ? for example writing in ddb and sending request to sqs/sts ?
@RicardoChase894
@RicardoChase894 Жыл бұрын
The Best
@BlockExplorerMedia
@BlockExplorerMedia Жыл бұрын
Thanks Jiiiiiiiiang!
@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.
@ba-en1io
@ba-en1io 4 жыл бұрын
hey, is this series included in the free tier
@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
@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.
@erlanggarakasatria9652
@erlanggarakasatria9652 4 жыл бұрын
i cant get my item from dynamoDB , and the response is : { "statusCode": 200, "body": "\"Hello from Lambda!\"" } can anyone help ?
@ralphdoe12
@ralphdoe12 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.
@devswami3159
@devswami3159 4 жыл бұрын
tq
@JP-vg8vl
@JP-vg8vl 4 жыл бұрын
please make a tutorial on how to send data from AWS IoT to DynamoDB using Lambda
AWS API Gateway & AWS Lambda | AWS Serverless tutorial | Part II
29:43
Intro to AWS Lambda with Python | AWS Lambda Python Tutorial
32:01
Block Explorer
Рет қаралды 258 М.
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 30 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 34 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 82 МЛН
AWS Lambda Python functions with a database (DynamoDB)
25:12
pixegami
Рет қаралды 26 М.
AWS API Gateway Websocket Tutorial With Lambda | COMPLETELY SERVERLESS!
19:07
Building a Serverless REST API in .NET with AWS Lambda
20:13
Nick Chapsas
Рет қаралды 75 М.
AWS API Gateway & AWS Lambda - AWS Serverless Part II
26:42
Block Explorer
Рет қаралды 41 М.
AWS Lambda Tutorial | Beginners to Advanced | Lambda Functions Tutorial
22:30
AWS Lambda Introduction - What is it and Why is it Useful?
13:34
Be A Better Dev
Рет қаралды 129 М.
Хакер взломал компьютер с USB кабеля. Кевин Митник.
0:58
Последний Оплот Безопасности
Рет қаралды 1,3 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 5 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 2,4 МЛН
НЕ БЕРУ APPLE VISION PRO!
0:37
ТЕСЛЕР
Рет қаралды 371 М.