AWS Lambda function that reads file information from uploaded file to Amazon S3

S3 bucket → AWS Lambda

This AWS CDK application demonstrates triggering a AWS Lambda function, when a file is uploaded in a S3 bucket.

This pattern provides a solution for accessing the file information from an AWS Lambda function, when a new file is uploaded in S3 bucket. An ideal use case for this is reading various file types e.g. image, csv, text, pdf files and extracting its metadata information and other file contents for further processing or just passing this information to downstream systems.

< 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/s3-lambda-cdk-dotnet

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Surbhita Shrote

Surbhita Shrote

Application Development Consultant at AWS Professional Services.

Follow on LinkedIn