Resizing images uploaded to Amazon S3 with AWS Lambda (Python)
Amazon S3 → AWS Lambda → Amazon S3
Create an AWS Lambda function that resizes images uploaded to Amazon S3.
A Lambda function consumes events from an Amazon S3 bucket. The Lambda code checks the uploaded file is an image, creates a thumbnail version of the image, then uploads the thumbnail to the destination bucket.
This pattern deploys a Lambda function and two S3 buckets.