AWS Lambda & DynamoDB - AWS Serverless Part I
Вставка
- Опубліковано 14 жов 2024
- 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/jsp...
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.
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
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.
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 : )
Best tutorial for lambda after long time of searching. Thank you!
Love to hear that...thanks for the feedback!
Why is your video much better than the official AWS-videos?
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
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!
Thanks too much!!!
My permanency in my current job was saved
That's awesome...glad to hear that!
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!
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.
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!
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: ua-cam.com/video/VGerk8hrP9U/v-deo.html. anything else you'd like to see covered on this channel?
You are a gem....... perfectly explained...love from india ❤️
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.
Cool Video!! Explained Lambda & Dynamo DB working in excellent way!
Awesome. This was so much more helpful that the Amazon online tutorials. Big help and thanks so much!
Thanks dude, this series is pretty good and solid. I love it.
exactly agree with Jacari. Also your voice is beautifully soothing
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. ua-cam.com/video/LXB2Nv9ygQc/v-deo.html
Thank you for this, it was very easy to follow. Well made man!
Excellent explanation. I like your exceptional teaching skill.
very helpful for me to understand the basic operation of AWS.
Thanks for that great tutorial, you have a nice voice to listen to. Thanks to you i understand the environment better.
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.
What a clear explanation, thank you sir. I really appreciate all the help you gave. Love respect.
Awesome videos. I like the pace and amount of details.
thanks, appreciate it : )
Thankssss complete detailss yet simple and efficient.... Thanksssss alotttt
The lesson is great. Probably the best i ever followed. Everything works at the end ;-). Thanks a lot!
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 ;)
thank you for your videos! say, why dynamodb doesnt say that you try to rewrite existing in the table item?
Got so much value out of it, thanks for sharing.
thanks man, im rookie in AWS and have to create app here :D great tut
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?
Kudos to the guy. Really knowledge ful video.
Thanks Jang glad you found it helpful.
This is awesome, super simple and works out of the box (Ignoring my IAM issues). Do you have a twitter?
oh also, Udemy Update?
i have a twitter account but haven't been using it much. Udemy...still working on that!
You saved my day, THANK YOU SOOOO MUCH
AMAZING! You are perfect to explain this
thanks Andrea...appreciate the support!
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
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.
8:29 i love how it recommends the name so you know this wasnt his first take haha
@Cloud Path, the AWS app course that you mentioned is available now in Udemy?
Very well explained. Subbed!
Awesome Tutorial. Super!
Great tutorial/demo - thank you very much.
Unreal tutorial. Thank you so much. Liked and subscribed.
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 so much for your videos. Your vioce is amazing and you explain very well. Thanks
Great work! Thanks Mister! Tidy it up. Could be 20 mins.
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.
Thanks...planning to do some Udemy courses in the future
hi there, how can you get all the data from the database, from this video it seems only get 1 at a time
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.
God bless you, fantastic tutorial!
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)
You saved my day! I love you :)
Good. Thanks for the video. Appreciated.
Very nicely explained. Thanks for the tutorial.
Great videos!!!
Thank you so much.
Very helpful video! Thanks
Really Helped me alot👍
hey can one lambda perform 2 operations ? for example writing in ddb and sending request to sqs/sts ?
Well explained every steps.. thanks
Excelent!! More than excelent. Thanks for this class!!!
i cant able to put and get data from dynamoDB please help?
Looking for your udemy course . Is it published?
GREAT VIDEO ! Thank you.
help log wont show up in lambda functions after test cant see the table details, only shows
{
"statusCode": 200,
"body": "\"Hello from Lambda!\""
}
Before you test, save your script, then Deploy the changes and then test. I think the problem was not deploying before you test.
Hope this helps.
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.
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
hey, is this series included in the free tier
You are the best
how can i save my results to a postgres DB or dynamoDB after hitting an endpoint via a lambda function
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.
Thanks for this. Great tutorial!
Very nice tutorial. +9000
Fantastic tutorial, Thank you!
please make a tutorial on how to send data from AWS IoT to DynamoDB using Lambda
Thanks for creating this! :)
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!
Great teacher!
You saved my life
thank you, sir, this is very helpful.
Great tutorial, thank you.
Good. Thanks for the video.
thank you for this video!
Great Video Mate!
Amazing Tutorial! thank you
Thank you so much dude!!!
Hey...I hate nodejs. you have lamba python functions tutorial anywhere else?
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?
The Best
Thanks Jiiiiiiiiang!
we need more serverless videos
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.
BRO U R just AWesomEEEEEE!!!!!!!!!!!!!!!!!!
thats a nice one
nice tutorial
Thank you! :D
code doesnt work. apparently the amazon sdk was updated
hi Raul, thanks for the head's up. which part specifically doesn't work? I'll rerun my code as soon as I get a chance and update it if necessary.
@@BlockExplorerMedia i had to use this 'use strict'
const AWS = require('aws-sdk');
AWS.config.update({ region: "us-east-1"});
exports.handler = async (event, context) => {
const documentClient = new AWS.DynamoDB.DocumentClient({ region: "us-east-1"});
var params = {
TableName: "customers",
Key: {
"id": 2
}
};
try {
const data = await documentClient.get(params).promise();
console.log(data);
} catch (err) {
console.log(err);
}
};
Thnx a ton
which font is this in VSCode?
thank you so much !!!!!