green-local
v1.5.2
Published
Stub implementation of the Greengrass Core SDK allowing to run lambda locally.
Downloads
3
Readme
green-local
Stub implementation of the Greengrass SDK allowing to run Lambda functions locally.
Current version: 1.5.2
Lead Maintainer: Halim Qarroum
Table of contents
Install
npm install --save green-local
Description
This module makes it possible to run the AWS Greengrass Core SDK, version 1.5, locally on your development machine by using stubs when outside of a Greengrass environment.
This module will not implement the same functionalities as Greengrass on your machine, but will rather allow you to safely execute the code of your Lambda functions on your developement environment without any errors due to missing dependencies which are normally not available outside of a Greengrass context.
Usage
In order to use green-local
, replace your Greengrass Core SDK dependency module by the following :
const Greengrass = require('green-local');
Since the green-local
module implements a common interface with the Greengrass Core SDK, nothing is to be changed into your code to work locally or inside Greengrass.
See also
- The green-cli tool.