[{"data":1,"prerenderedAt":66},["ShallowReactive",2],{"pattern-dynamodb-lambda-filters":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":29,"language":34,"level":35,"meta":36,"patternArch":37,"resources":50,"s3URL":6,"services":59,"stem":60,"testing":61,"videoId":33,"__hash__":65},"patterns\u002Fpatterns\u002Fdynamodb-lambda-filters.json","Amazon DynamoDB to AWS Lambda",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\u002Fjones-zachariah-noel.json",{"text":15},[16,17],"sam build","sam deploy --guided","Invoke a Lambda function from changes to a DynamoDB table using event-based filters","json","AWS SAM",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"dynamodb-streams-lambda-event-filters","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fdynamodb-streams-lambda-event-filters","serverless-patterns\u002Fdynamodb-streams-lambda-event-filters","template.yaml",[28],{},{"headline":30,"text":31,"test":33},"How it works",[32],"This event pattern demonstrates how DynamoDB Streams with event-based filtering on dynamodb:put and dynamodb:delete operations trigger Lambda functions.","","Node.js","200",{},{"icon1":38,"icon2":43,"line1":47},{"x":39,"y":40,"service":41,"label":42},20,50,"dynamodb","Amazon DynamoDB",{"x":44,"y":40,"service":45,"label":46},80,"lambda","AWS Lambda",{"from":48,"to":49,"label":33},"icon1","icon2",{"headline":51,"bullets":52},"Additional resources",[53,56],{"text":54,"link":55},"AWS Docs: DynamoDB Streams and AWS Lambda Triggers","https:\u002F\u002Fdocs.aws.amazon.com\u002Famazondynamodb\u002Flatest\u002Fdeveloperguide\u002FStreams.Lambda.html",{"text":57,"link":58},"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":41,"to":45},"patterns\u002Fdynamodb-lambda-filters",{"headline":62,"text":63},"Testing",[64],"After deployment, add an item to the DynamoDB table. Go to the CloudWatch Logs for the deployed Lambda function. You will see the event is logged out containing the item data.","HeQHtTw98sf-MCtb4rNkt96UceMc_zZHIVbJq4DRrdE",1782124506443]