Learn How to Use Lambda Layers by Building an Image Resize Function Using Sharpby@webiny
361 reads

Learn How to Use Lambda Layers by Building an Image Resize Function Using Sharp

tldt arrow
Read on Terminal Reader🖨️

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.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Learn How to Use Lambda Layers by Building an Image Resize Function Using Sharp
Webiny Serverless CMS HackerNoon profile picture

@webiny

Webiny Serverless CMS

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa