Skip to content

Simple Serverless plugin for auto-installing node packages required in Lambda layers before packaging and deployment

License

Notifications You must be signed in to change notification settings

sunnycyy/serverless-lambda-layer-npm-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Lambda Layer NPM Installer

Simple Serverless plugin for auto-installing node packages required in Lambda layers before packaging and deployment.

serverless license npm

Installation

Install via Serverless

serverless plugin install -n serverless-lambda-layer-npm-installer

Install via NPM

Install the plugin via NPM:

npm install --save-dev serverless-lambda-layer-npm-installer

Then register it in the plugin section of servereless.yml:

# serverless.yml file

plugins:
  - serverless-lambda-layer-npm-installer

Usage

When running serverless package, serverless deploy or serverless deploy function, npm install will be run on directories of Lambda layers defined in serverless.yml.

About

Simple Serverless plugin for auto-installing node packages required in Lambda layers before packaging and deployment

Topics

Resources

License

Stars

Watchers

Forks