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.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 155

  • @duyhieu7820
    @duyhieu7820 4 ปีที่แล้ว +71

    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

  • @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 ปีที่แล้ว +6

    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.

  • @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 ปีที่แล้ว +71

    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!

  • @reidyoung298
    @reidyoung298 4 ปีที่แล้ว +1

    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!

  • @maryotoole8270
    @maryotoole8270 4 ปีที่แล้ว

    Awesome. This was so much more helpful that the Amazon online tutorials. Big help and thanks so much!

  • @caiotony2037
    @caiotony2037 2 ปีที่แล้ว +1

    Thanks too much!!!
    My permanency in my current job was saved

  • @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.

  • @kokoro5051
    @kokoro5051 5 ปีที่แล้ว +3

    Thanks dude, this series is pretty good and solid. I love it.

  • @denkling
    @denkling 4 ปีที่แล้ว

    Why is your video much better than the official AWS-videos?

  • @firattamur1682
    @firattamur1682 3 ปีที่แล้ว +1

    Best tutorial for lambda after long time of searching. Thank you!

  • @arunkumark
    @arunkumark 4 ปีที่แล้ว

    Cool Video!! Explained Lambda & Dynamo DB working in excellent way!

  • @johnblack8178
    @johnblack8178 4 ปีที่แล้ว

    Thanks for that great tutorial, you have a nice voice to listen to. Thanks to you i understand the environment better.

  • @leastros927
    @leastros927 5 ปีที่แล้ว +3

    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 ปีที่แล้ว +1

    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: th-cam.com/video/VGerk8hrP9U/w-d-xo.html. anything else you'd like to see covered on this channel?

  • @emmanuelwafwana5583
    @emmanuelwafwana5583 4 ปีที่แล้ว

    The lesson is great. Probably the best i ever followed. Everything works at the end ;-). Thanks a lot!

  • @richardnguyen6141
    @richardnguyen6141 4 ปีที่แล้ว

    Excellent explanation. I like your exceptional teaching skill.

  • @ritanshusingh4426
    @ritanshusingh4426 3 ปีที่แล้ว

    You are a gem....... perfectly explained...love from india ❤️

  • @fanggladys9986
    @fanggladys9986 4 ปีที่แล้ว

    exactly agree with Jacari. Also your voice is beautifully soothing

  • @drvoip
    @drvoip 5 ปีที่แล้ว +21

    Excellent material! Most other folks say "Dine a Moe DB" !

    • @BlockExplorerMedia
      @BlockExplorerMedia  5 ปีที่แล้ว +1

      thanks! i know somebody else pointed that out too, lol. trying to retrain my brain my mangled pronunciation : )

  • @dkkektmsnsndm2084
    @dkkektmsnsndm2084 2 ปีที่แล้ว

    What a clear explanation, thank you sir. I really appreciate all the help you gave. Love respect.

  • @johnduriman8662
    @johnduriman8662 2 ปีที่แล้ว

    Thank you for this, it was very easy to follow. Well made man!

  • @MrJohn360
    @MrJohn360 5 ปีที่แล้ว +2

    Got so much value out of it, thanks for sharing.

  • @kamalbuqaileh8474
    @kamalbuqaileh8474 4 ปีที่แล้ว +4

    You saved my day, THANK YOU SOOOO MUCH

  • @liangwang3356
    @liangwang3356 4 ปีที่แล้ว

    very helpful for me to understand the basic operation of AWS.

  • @ankitsmit19
    @ankitsmit19 4 ปีที่แล้ว

    Very nicely explained. Thanks for the tutorial.

  • @michagoleniewski8074
    @michagoleniewski8074 4 ปีที่แล้ว +2

    thanks man, im rookie in AWS and have to create app here :D great tut

  • @TheSmellOfCode
    @TheSmellOfCode 5 ปีที่แล้ว +2

    Awesome videos. I like the pace and amount of details.

  • @zachwhite8054
    @zachwhite8054 4 ปีที่แล้ว

    Unreal tutorial. Thank you so much. Liked and subscribed.

  • @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.

  • @no_one1500
    @no_one1500 3 ปีที่แล้ว

    Thankssss complete detailss yet simple and efficient.... Thanksssss alotttt

  • @responseready7375
    @responseready7375 4 ปีที่แล้ว +3

    You saved my day! I love you :)

  • @bunyaminmercan5077
    @bunyaminmercan5077 3 ปีที่แล้ว

    Awesome Tutorial. Super!

  • @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

  • @madChileRiver
    @madChileRiver 3 ปีที่แล้ว

    Great tutorial/demo - thank you very much.

  • @sasquatch2267
    @sasquatch2267 5 ปีที่แล้ว +1

    Thanks for creating this! :)

  • @ankur_upadhyay_
    @ankur_upadhyay_ 4 ปีที่แล้ว

    Thank you ... it was amazing lesson and a detailed one ...appreciate

  • @shouldicallyoumista1167
    @shouldicallyoumista1167 3 ปีที่แล้ว

    Very well explained. Subbed!

  • @yogirajkouskiya1199
    @yogirajkouskiya1199 5 ปีที่แล้ว +2

    Good. Thanks for the video. Appreciated.

  • @andreapirola2737
    @andreapirola2737 5 ปีที่แล้ว +2

    AMAZING! You are perfect to explain this

  • @himadrithaker4857
    @himadrithaker4857 4 ปีที่แล้ว

    Well explained every steps.. thanks

  • @hacmia8708
    @hacmia8708 4 ปีที่แล้ว

    Fantastic tutorial, Thank you!

  • @cuzbo_
    @cuzbo_ 4 ปีที่แล้ว

    Thanks for this. Great tutorial!

  • @JangBahadur3028
    @JangBahadur3028 ปีที่แล้ว

    Kudos to the guy. Really knowledge ful video.

  • @moathdlaimi150
    @moathdlaimi150 3 ปีที่แล้ว

    God bless you, fantastic tutorial!

  • @aakashkharche9429
    @aakashkharche9429 3 ปีที่แล้ว

    Really Helped me alot👍

  • @robinkelmen6332
    @robinkelmen6332 3 ปีที่แล้ว

    Great videos!!!
    Thank you so much.

  • @tamirsagi4544
    @tamirsagi4544 4 ปีที่แล้ว

    Amazing Tutorial! thank you

  • @wenhuiluo1900
    @wenhuiluo1900 4 ปีที่แล้ว +1

    thank you, sir, this is very helpful.

  • @godwincodes
    @godwincodes 4 ปีที่แล้ว

    Very helpful video! Thanks

  • @illbet4589
    @illbet4589 3 ปีที่แล้ว

    GREAT VIDEO ! Thank you.

  • @ntokozomajozi2716
    @ntokozomajozi2716 4 ปีที่แล้ว

    Great tutorial, thank you.

  • @john-danson3113
    @john-danson3113 4 ปีที่แล้ว

    Great work! Thanks Mister! Tidy it up. Could be 20 mins.

  • @ayubadan3220
    @ayubadan3220 4 ปีที่แล้ว

    Great Video Mate!

  • @bijarnia_vikash
    @bijarnia_vikash 5 ปีที่แล้ว +1

    Good. Thanks for the video.

  • @jjurksztowicz
    @jjurksztowicz 5 ปีที่แล้ว +1

    Very nice tutorial. +9000

  • @nikwycherley9079
    @nikwycherley9079 5 ปีที่แล้ว +3

    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.

  • @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 ;)

  • @almogcohen2858
    @almogcohen2858 3 ปีที่แล้ว

    Great videos, thanks alot !

  • @amberjones6191
    @amberjones6191 4 ปีที่แล้ว

    Great teacher!

  • @reprovedcandy
    @reprovedcandy ปีที่แล้ว

    8:29 i love how it recommends the name so you know this wasnt his first take haha

  • @paothanh1344
    @paothanh1344 4 ปีที่แล้ว +1

    hi there, how can you get all the data from the database, from this video it seems only get 1 at a time

  • @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?

  • @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?

  • @q1dsdsdsq2dssdsd95
    @q1dsdsdsq2dssdsd95 4 ปีที่แล้ว +1

    thank you for your videos! say, why dynamodb doesnt say that you try to rewrite existing in the table item?

  • @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 ?

  • @padmavatibasarkode885
    @padmavatibasarkode885 ปีที่แล้ว

    hey can one lambda perform 2 operations ? for example writing in ddb and sending request to sqs/sts ?

  • @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

  • @MrMrMayday
    @MrMrMayday 4 ปีที่แล้ว

    You saved my life

  • @keithkinyua6815
    @keithkinyua6815 4 ปีที่แล้ว

    how can i save my results to a postgres DB or dynamoDB after hitting an endpoint via a lambda function

  • @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.

  • @JP-vg8vl
    @JP-vg8vl 3 ปีที่แล้ว

    thank you for this video!

  • @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.

  • @prathameshmahangade8987
    @prathameshmahangade8987 4 ปีที่แล้ว +1

    You are the best

  • @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

  • @CTCCCCCCCC
    @CTCCCCCCCC 3 ปีที่แล้ว

    Thank you so much dude!!!

  • @ba-en1io
    @ba-en1io 4 ปีที่แล้ว

    hey, is this series included in the free tier

  • @syedimam1998
    @syedimam1998 4 ปีที่แล้ว

    BRO U R just AWesomEEEEEE!!!!!!!!!!!!!!!!!!

  • @tomdemey5606
    @tomdemey5606 5 ปีที่แล้ว +2

    Thank you! :D

  • @prakharbakshi7627
    @prakharbakshi7627 3 ปีที่แล้ว +1

    i cant able to put and get data from dynamoDB please help?

  • @JayJugJones
    @JayJugJones 4 ปีที่แล้ว

    nice tutorial

  • @shahinanishad2258
    @shahinanishad2258 3 ปีที่แล้ว

    @Cloud Path, the AWS app course that you mentioned is available now in Udemy?

  • @balajikesavan9933
    @balajikesavan9933 3 ปีที่แล้ว

    thats a nice one

  • @filipvranesevic8722
    @filipvranesevic8722 2 ปีที่แล้ว

    which font is this in VSCode?

  • @erlanggarakasatria9652
    @erlanggarakasatria9652 4 ปีที่แล้ว +2

    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.

  • @hmnyari
    @hmnyari 4 ปีที่แล้ว

    thank you so much !!!!!

  • @JP-vg8vl
    @JP-vg8vl 3 ปีที่แล้ว

    please make a tutorial on how to send data from AWS IoT to DynamoDB using Lambda

  • @sahild6584
    @sahild6584 ปีที่แล้ว

    Thnx a ton

  • @dishamittal3645
    @dishamittal3645 3 ปีที่แล้ว

    my lambda functions are not calling please help me

  • @tarekhabibi3662
    @tarekhabibi3662 4 ปีที่แล้ว

    Looking for your udemy course . Is it published?

  • @punnarajeev867
    @punnarajeev867 3 ปีที่แล้ว

    Can I get the udemy link??

  • @christophermartinez1769
    @christophermartinez1769 3 ปีที่แล้ว

    Thanks a lot

  • @XGazudin
    @XGazudin หลายเดือนก่อน

    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?

  • @HemachandranM
    @HemachandranM 5 ปีที่แล้ว +1

    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)

  • @santoshkumbhar475
    @santoshkumbhar475 4 ปีที่แล้ว

    Hey...I hate nodejs. you have lamba python functions tutorial anywhere else?

  • @daronwolff
    @daronwolff 4 ปีที่แล้ว

    Thanks a lot

  • @bennychewDev
    @bennychewDev 5 ปีที่แล้ว +3

    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 ปีที่แล้ว +1

      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. th-cam.com/video/LXB2Nv9ygQc/w-d-xo.html