AWS Lambda & DynamoDB - AWS Serverless Part I



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):

Completed tutorial code:
https://github.com/jspruance/cloudpath-tutorials/tree/master/aws-serverless/aws-lambda-tutorial

Intro to AWS Lambda with Python:

Originally published on 12/29/2018. Updated 1/3/2019.

source

42 thoughts on “AWS Lambda & DynamoDB – AWS Serverless Part I”
  1. If you edited out all the time you spent capitalizing 'Aws' this video would be 4 minutes long

  2. help log wont show up in lambda functions after test cant see the table details, only shows
    {
    "statusCode": 200,
    "body": ""Hello from Lambda!""
    }

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

  4. 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.

  5. One a the few tutorials I was ever able to follow wherein I only have to write notes to do the Lab and not to find on internet what the heck was this an that

  6. 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 ?

  7. Hi, I am ggetting this Response and not the table content:
    {
    "statusCode": 200,
    "body": ""Hello from Lambda!""
    }

    THE LAMBDA CODE IS:

    'use strict'
    const AWS = require('aws-sdk');

    AWS.config.update({ region: "ap-south-1"});

    exports.handler = async (event, context) => {
    const ddb = new AWS.DynamoDB({ apiVersion: "2012-10-08"});
    const documentClient = new AWS.DynamoDB.DocumentClient({ region: "ap-south-1"});

    const params = {
    TableName: "Users",
    Key: {
    id: "1"
    }
    }

    try {
    const data = await documentClient.get(params).promise();
    console.log(data);
    } catch (err) {
    console.log(err);
    }
    }

  8. Hai can you please help me to change the code ddb.getItem(params,(error,data)=>{
    if(){}
    console.log(data);
    })
    Into Synchronous method.
    Please help.

  9. 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

  10. 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.

  11. 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.

  12. 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?

  13. 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 😉

Leave a Reply

Your email address will not be published.

Captcha loading...