Too Long; Didn't Read
Lambda Layer is a convenient way to package your libraries and other dependencies that can be used with Lambda functions. We will use a Lambda function that will create a thumbnail image using the sharp library. For each image file uploaded to an S3 bucket (source bucket), the Lambda. function will be invoked. It will read the image. object from the source bucket, create a. thumbnail image, and save it to the target bucket. The function must have permission for the following operations: Get the object. Put the resized object into the target. bucket. Write logs to Amazon CloudWatch Logs.