AWS Lambda & DynamoDB - AWS Serverless Part I
ฝัง
- เผยแพร่เมื่อ 2 ม.ค. 2019
- 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. - วิทยาศาสตร์และเทคโนโลยี
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
40:35 forgot to confirm the return on a put after using a unique key.
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.
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
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.
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!
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!
Link to the Udemy course plsz
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!
Awesome. This was so much more helpful that the Amazon online tutorials. Big help and thanks so much!
Thanks too much!!!
My permanency in my current job was saved
That's awesome...glad to hear that!
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.
Thanks dude, this series is pretty good and solid. I love it.
Why is your video much better than the official AWS-videos?
Best tutorial for lambda after long time of searching. Thank you!
Love to hear that...thanks for the feedback!
Cool Video!! Explained Lambda & Dynamo DB working in excellent way!
Thanks for that great tutorial, you have a nice voice to listen to. Thanks to you i understand the environment better.
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!
really glad to hear that. thanks for your support!
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
thanks Sameera, glad you found it useful! i do have a 'Create a Serverless App' tutorial series available here: th-cam.com/video/VGerk8hrP9U/w-d-xo.html. anything else you'd like to see covered on this channel?
The lesson is great. Probably the best i ever followed. Everything works at the end ;-). Thanks a lot!
Excellent explanation. I like your exceptional teaching skill.
You are a gem....... perfectly explained...love from india ❤️
exactly agree with Jacari. Also your voice is beautifully soothing
Excellent material! Most other folks say "Dine a Moe DB" !
thanks! i know somebody else pointed that out too, lol. trying to retrain my brain my mangled pronunciation : )
What a clear explanation, thank you sir. I really appreciate all the help you gave. Love respect.
Thank you for this, it was very easy to follow. Well made man!
Got so much value out of it, thanks for sharing.
You saved my day, THANK YOU SOOOO MUCH
very helpful for me to understand the basic operation of AWS.
Very nicely explained. Thanks for the tutorial.
thanks man, im rookie in AWS and have to create app here :D great tut
Awesome videos. I like the pace and amount of details.
thanks, appreciate it : )
Unreal tutorial. Thank you so much. Liked and subscribed.
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.
Thankssss complete detailss yet simple and efficient.... Thanksssss alotttt
You saved my day! I love you :)
Awesome Tutorial. Super!
Excelent!! More than excelent. Thanks for this class!!!
Thank you so much for your videos. Your vioce is amazing and you explain very well. Thanks
Great tutorial/demo - thank you very much.
Thanks for creating this! :)
Thank you ... it was amazing lesson and a detailed one ...appreciate
Very well explained. Subbed!
Good. Thanks for the video. Appreciated.
AMAZING! You are perfect to explain this
thanks Andrea...appreciate the support!
Well explained every steps.. thanks
Fantastic tutorial, Thank you!
Thanks for this. Great tutorial!
Kudos to the guy. Really knowledge ful video.
Thanks Jang glad you found it helpful.
God bless you, fantastic tutorial!
Really Helped me alot👍
Great videos!!!
Thank you so much.
Amazing Tutorial! thank you
thank you, sir, this is very helpful.
Very helpful video! Thanks
GREAT VIDEO ! Thank you.
Great tutorial, thank you.
Great work! Thanks Mister! Tidy it up. Could be 20 mins.
Great Video Mate!
Good. Thanks for the video.
Very nice tutorial. +9000
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.
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.
This comment needs to be featured or pinned or something.
Just a note to say that you no longer need to specify the data type (ie. ‘S’) in your dynamodb object.
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 ;)
Great videos, thanks alot !
Great teacher!
8:29 i love how it recommends the name so you know this wasnt his first take haha
hi there, how can you get all the data from the database, from this video it seems only get 1 at a time
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?
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?
thank you for your videos! say, why dynamodb doesnt say that you try to rewrite existing in the table item?
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 ?
hey can one lambda perform 2 operations ? for example writing in ddb and sending request to sqs/sts ?
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
You saved my life
how can i save my results to a postgres DB or dynamoDB after hitting an endpoint via a lambda function
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.
thank you for this video!
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.
You are the best
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
Thank you so much dude!!!
hey, is this series included in the free tier
BRO U R just AWesomEEEEEE!!!!!!!!!!!!!!!!!!
Thank you! :D
i cant able to put and get data from dynamoDB please help?
nice tutorial
@Cloud Path, the AWS app course that you mentioned is available now in Udemy?
thats a nice one
which font is this in VSCode?
i cant get my item from dynamoDB , and the response is :
{
"statusCode": 200,
"body": "\"Hello from Lambda!\""
}
can anyone help ?
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.
thank you so much !!!!!
please make a tutorial on how to send data from AWS IoT to DynamoDB using Lambda
Thnx a ton
my lambda functions are not calling please help me
Looking for your udemy course . Is it published?
Can I get the udemy link??
Thanks a lot
boy has this chanegd. the aws impor doesn't wor anymore implicitly, which is the only reason i am frantically searching for a way to get this to work. Whywould they remove the abiliy to just import the aws sdk in the lambda?
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.
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)
Hey...I hate nodejs. you have lamba python functions tutorial anywhere else?
Thanks a lot
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?
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.
@@BlockExplorerMedia I came across Serverless framework couple of days ago. Seems pretty interesting. May be what I was looking for. th-cam.com/video/LXB2Nv9ygQc/w-d-xo.html