[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"pattern-lambda-dynamodb":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":30,"language":35,"level":36,"meta":37,"patternArch":38,"resources":51,"s3URL":6,"services":60,"stem":61,"testing":62,"videoId":34,"__hash__":66},"patterns\u002Fpatterns\u002Flambda-dynamodb.json","AWS Lambda to Amazon DynamoDB",null,{"headline":8,"text":9},"Cleanup",[10,11],"1. Delete the stack: \u003Ccode>sam delete --stack-name STACK_NAME\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>",[13],"content\u002Fcontributors\u002Fbenjamin-smith.json",{"text":15},[16],"sam deploy --guided","Persist an item to a DynamoDB table from a Lambda function","json","AWS SAM",{"template":21,"payloads":26},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"lambda-dynamodb","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Flambda-dynamodb","serverless-patterns\u002Flambda-dynamodb","template.yaml",[27],{"headline":28,"payloadURL":29},"Sample Lambda payload","lambda-dynamodb\u002Fevents\u002FinputFile.txt",{"headline":31,"text":32,"test":34},"How it works",[33],"The SAM template deploys a Lambda function, a DynamoDB table, and the minimum IAM resources required to run the application. A Lambda function uses the AWS SDK to persist an item to a DynamoDB table.","","Node.js","200",{},{"icon1":39,"icon2":44,"line1":48},{"x":40,"y":41,"service":42,"label":43},20,50,"lambda","AWS Lambda",{"x":45,"y":41,"service":46,"label":47},80,"dynamodb","Amazon DynamoDB",{"from":49,"to":50,"label":34},"icon1","icon2",{"headline":52,"bullets":53},"Additional resources",[54,57],{"text":55,"link":56},"AWS Docs: Writing Data to a Table","https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FSQLtoNoSQL.WriteData.html",{"text":58,"link":59},"Creating a scalable serverless import process for Amazon DynamoDB","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fcreating-a-scalable-serverless-import-process-for-amazon-dynamodb\u002F",{"from":42,"to":46},"patterns\u002Flambda-dynamodb",{"headline":63,"text":64},"Testing",[65],"See the GitHub repo for detailed testing instructions.","swqlwIKlUFLUSXrvCOmLK_WTsi-3r0TCZ-1UR6GhghE",1780050909160]