Amplify CLI adds support for Lambda layers to easily share code & assets across Lambda functions

Posted on: Jul 7, 2020

With this release, Amplify CLI makes it easy to use Lambda layers to share code & assets across various Lambda functions. Amplify CLI provides a guided creation, update, and deployment process for Lambda layers designed for Node.js, and Python runtimes.  

In addition, Amplify CLI enables you to add existing Lambda layers to your Lambda functions by referencing existing Lambda layer ARNs. Amplify CLI’s Lambda layer support also provides access management out-of-the-box enabling you to keep your Lambda layer private or share it with other users in AWS. 

Refer to a full guide for how to create & use Lambda layers in our blog post.

To get started, install the Amplify CLI and run amplify add function.