[{"data":1,"prerenderedAt":75},["ShallowReactive",2],{"pattern-s3-lambda-dynamodb-cdk":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":12,"deploy":14,"description":17,"extension":18,"framework":19,"gitHub":20,"highlight":6,"introBox":26,"language":34,"level":35,"meta":36,"patternArch":37,"resources":55,"s3URL":6,"services":6,"stem":70,"testing":71,"videoId":6,"__hash__":74},"patterns\u002Fpatterns\u002Fs3-lambda-dynamodb-cdk.json","Amazon S3 to AWS Lambda to Amazon DynamoDB",null,{"text":8},[9,10,11],"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.",[13],"content\u002Fcontributors\u002Fyogananda-karra.json",{"text":15},[16],"cdk deploy --parameters dataObject=\u003Cname of the objects>","Upload object data from S3 to DynamoDB via Lambda.","json","AWS CDK",{"template":21},{"projectFolder":22,"repoURL":23,"templateURL":24,"templateFile":25},"s3-lambda-dynamodb-cdk","https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fs3-lambda-dynamodb-cdk","serverless-patterns\u002Fs3-lambda-dynamodb-cdk","cdk\u002Flib\u002Fs3-lambda-dynamodb-cdk-stack.ts",{"headline":27,"text":28,"test":33},"How it works",[29,30,31,32],"This pattern in CDK offers a complete solution to load data from CSV files stored on S3. The following resources are created:","- S3 Bucket with event notification on object creates","- DynamoDB Table with on-demand billing mode","- Lambda function that runs python and takes environment variables of bucket name, object key, and dynamodb table","","TypeScript","200",{},{"icon1":38,"icon2":43,"icon3":46,"line1":50,"line2":53},{"x":39,"y":40,"service":41,"label":42},20,50,"s3","S3",{"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":33},"icon1","icon2",{"from":52,"to":54,"label":33},"icon3",{"headline":56,"bullets":57},"Additional resources",[58,61,64,67],{"text":59,"link":60},"Amazon S3 Event Notifications","https:\u002F\u002Fdocs.aws.amazon.com\u002FAmazonS3\u002Flatest\u002Fuserguide\u002FNotificationHowTo.html",{"text":62,"link":63},"Blog: 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",{"text":65,"link":66},"Tutorial: Using AWS Lambda with Amazon S3","https:\u002F\u002Fdocs.aws.amazon.com\u002Flambda\u002Flatest\u002Fdg\u002Fwith-s3-example.html",{"text":68,"link":69},"Blog Series: Building scalable serverless applications with Amazon S3 and AWS Lambda.","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fbuilding-scalable-serverless-applications-with-amazon-s3-and-aws-lambda\u002F","patterns\u002Fs3-lambda-dynamodb-cdk",{"text":72},[73],"See the GitHub repo for detailed testing instructions.","BieuIXy6j_V0v2bAqwaAMYt9LOmzyTdt_55zHx1z3Tg",1778846887349]