8000 GitHub - fvi-att/serverless-layers: Serverless.js plugin that implements AWS Lambda Layers which reduces drastically lambda size, warm-up and deployment time.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Serverless.js plugin that implements AWS Lambda Layers which reduces drastically lambda size, warm-up and deployment time.

Notifications You must be signed in to change notification settings

fvi-att/serverless-layers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serverless-layers

serverless Issues License NPM Build Status PRs Welcome

  • Automatically attach layers for each lambda function
  • Creates a new layer version when package.json was updated
  • If package.json was not changed, it does not publish a new layer
  • Reduces drastically lambda size
  • It reduces deployment time.
  • Share same layers (libraries) with all lambda functions

Requirements

  • Serverless >= 1.34.0 (layers support)
  • Node >= v6.10.3
  • NPM >= 3.10.10
  • AWS only (sorry)
  • A valid package.json file

Install

npm install -D serverless-layers

or

serverless plugin install --name serverless-layers

Add the plugin to your serverless.yml file:

Serverless configuration

provider:
  ...
  deploymentBucket: #required!
    name: "your_bucket"

package:
  individually: false
  exclude:
    - node_modules/**

plugins:
  - serverless-layers

Options

custom:
  serverless-layers:
    packageManager: yarn # NEW
    compileDir: .serverless
    packagePath: package.json
    compatibleRuntimes: ['nodejs']
    layersDeploymentBucket: "your_layers_bucket"
    customInstallationCommand: 'MY_ENV=foo npm --proxy https://myproxy.com install --production'

Contributing

Yes, thank you! This plugin is community-driven, most of its features are from different authors. Please update the docs and tests and add your name to the package.json file. We try to follow Airbnb's JavaScript Style Guide.

License

MIT

About

Serverless.js plugin that implements AWS Lambda Layers which reduces drastically lambda size, warm-up and deployment time.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%
0