Process files uploaded to Amazon S3 with Amazon SQS, AWS Lambda and Amazon DynamoDB

Amazon S3 → Amazon SQS → AWS Lambda → Amazon DynamoDB

Stores and process CSV data using Amazon S3, Amazon SQS, AWS Lambda and Amazon DynamoDB.

This AWS CDK template deploys an S3 bucket, SQS queue, Lambda function and DynamoDB table.
The SQS queue is configured to listen to S3 create object events.
The Lambda function is then configured to read messages from the SQS queue, process the messages and insert records into the DynamoDB table.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/cdk-s3-sqs-lambda-dynamodb

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Shashi Shankar

Shashi Shankar is a Sr Cloud Architect at PwC Advisory services

Follow on LinkedIn