Resizing images uploaded to Amazon S3 with AWS Lambda (.NET)

Amazon S3 → AWS Lambda → Amazon S3

Automate the creation of thumbnail images from new images on Amazon S3 leveraging Lambda and .NET

This pattern deploys an Amazon S3 bucket for image hosting with an AWS Lambda function that gets invoked when new images are added to the bucket. The Lambda function uses .NET 6 to create a thumbnail of the image and save the thumbnail back to the same S3 bucket.

< Back to all patterns
AWS Top Pick

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-resizing-dotnet

Deploy

sam buildsam deploy --guided


Testing

See the GitHub repo readme for detailed testing instructions.

Cleanup

Empty the S3 bucket
sam delete --stack-name STACK_NAME

Created by:

Garrett Johnson

Garrett Johnson

Garrett is a Sr. Solutions Architect at AWS based in Utah.

Follow on LinkedIn