Lambda Layers

Here, you'll get familiar with Lambda layers and use them in your application!

image-magick-lambda-layer #

The image-magick-lambda-layer SAR component makes ImageMagick utilities available to Lambda functions in the form of a layer.

A Lambda layer is a file package that can be deployed to AWS and then attached to many functions. Layers are useful for sharing large packages across functions and for speeding up deployments. For example, ImageMagick tools consume about 60 MB of file storage. Instead of including them with every single Lambda function that needs access to ImageMagick, you could pack and deploy those tools once in a layer. Individual function packages can then contain only the source code unique to each use case and can request access to image conversion tools during deployment.

From the perspective of a Lambda function, a layer is effectively a shared read-only file system. Files ...