Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-local-environment

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-local-environment

Serverless Plugin to set local environment variables

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
275
increased by15.06%
Maintainers
1
Weekly downloads
 
Created
Source

Serverless local variables

This plugin helps you add some conf that will only work for serverless invoke local

This way :

  • you can customize the behavior when running on local
  • you can set another stage to use locally
  • You can set variables like LD_LIBRARY_PATH to connact to your local environment
  • You can mock your cloud ressource during your local tests

Install

npm install --save-dev serverless-local-environment

Usage

You can use it like

serverless.yml

plugins:
  - serverless-local-environment

...

functions:
  my-function:
    handler: index.handler
    stage: dev
    environment:
      ENV: dev
    local-environment:
      ENV: local

About LD_LIBRARY_PATH

Aws serverless plugin set LD_LIBRARY_PATH to '/usr/local/lib64/node-v4.3.x/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib' (see https://github.com/serverless/serverless/blob/4b71faf2128308894646940ce2fb64e826450972/lib/plugins/aws/invokeLocal/index.js#L95), this library is adding this value to your local LD_LIBRARY_PATH values

Keywords

FAQs

Package last updated on 11 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc