[{"data":1,"prerenderedAt":71},["ShallowReactive",2],{"pattern-sqs-lambda-ddb-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":13,"deploy":15,"description":18,"extension":19,"framework":20,"gitHub":21,"highlight":6,"introBox":30,"language":34,"level":35,"meta":36,"patternArch":37,"resources":55,"s3URL":6,"services":64,"stem":65,"testing":66,"videoId":29,"__hash__":70},"patterns\u002Fpatterns\u002Fsqs-lambda-ddb-cdk.json","Amazon SQS to AWS Lambda to Amazon DynamoDB",null,{"headline":8,"text":9},"Cleanup",[10,11,12],"1. Delete the stack: \u003Ccode>npx cdk destroy\u003C\u002Fcode>.","2. Confirm the stack has been deleted: \u003Ccode>aws cloudformation list-stacks --query \"StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus\"\u003C\u002Fcode>.","3. You see a message confirming DELETE_COMPLETE.",[14],"content\u002Fcontributors\u002Fpaulo-beleza-heneine.json",{"text":16},[17],"cdk deploy","Create a Lambda function that batch writes to DynamoDB from SQS.","json","AWS CDK",{"template":22,"payloads":27},{"projectFolder":23,"repoURL":24,"templateURL":25,"templateFile":26},"sqs-lambda-dynamodb-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsqs-lambda-dynamodb-cdk","serverless-patterns\u002Fsqs-lambda-dynamodb-cdk","vsam_to_dynamo\u002Fvsam_to_dynamo_stack.py",[28],{"headline":29,"payloadURL":29},"",{"headline":31,"text":32},"How it works",[33],"This pattern deploys an SQS queue, a Lambda Function, and a DynamoDB table allowing batch writes from SQS messages to a DynamoDB. The CDK application contains the minimum IAM resources required to run the application.","Python","200",{},{"icon1":38,"icon2":43,"icon3":46,"line1":50,"line2":53},{"x":39,"y":40,"service":41,"label":42},20,50,"sqs","SQS",{"x":40,"y":40,"service":44,"label":45},"lambda","AWS Lambda",{"x":47,"y":40,"service":48,"label":49},80,"dynamodb","Amazon DynamoDB",{"from":51,"to":52,"label":29},"icon1","icon2",{"from":52,"to":54,"label":29},"icon3",{"headline":56,"bullets":57},"Additional resources",[58,61],{"text":59,"link":60},"Choosing between messaging services for serverless applications.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fchoosing-between-messaging-services-for-serverless-applications\u002F",{"text":62,"link":63},"Configuring a queue to trigger an AWS Lambda function","https:\u002F\u002Fdocs.aws.amazon.com\u002FAWSSimpleQueueService\u002Flatest\u002FSQSDeveloperGuide\u002Fsqs-configure-lambda-function-trigger.html",{"from":41,"to":48},"patterns\u002Fsqs-lambda-ddb-cdk",{"headline":67,"text":68},"Testing",[69],"See the GitHub repo for testing instructions.","LdRRG1Q3RL0JrZAs4umOm4GH-l3fam4FVwYNcJexT54",1778846888279]