lambda-local
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "lambda-local", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Commandline tool to run Lambda functions on your local machine.", | ||
@@ -5,0 +5,0 @@ "author": "ashiina", |
Lambda-local | ||
============ | ||
Lambda-local lets you test Amazon Lambda functions on your local machine with stub data. | ||
Lambda-local lets you test Amazon Lambda functions on your local machine with sample event data. | ||
The `context` of the Lambda function is already loaded so you do not have to worry about it. | ||
You can pass any `event` JSON object as you please. | ||
Install | ||
---- | ||
```bash | ||
npm install -g lambda-local | ||
``` | ||
Usage | ||
@@ -41,6 +49,8 @@ ----- | ||
Since the Amazon Lambda can load the AWS-SDK npm without installation, Lambda-local has also packaged AWS-SDK in its dependencies. | ||
If you want to use this, please manually add Lambda-local's path to NODE_PATH with the following: | ||
If you want to use this, please manually add Lambda-local's path to NODE_PATH, as well as AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY : | ||
```bash | ||
export NODE_PATH='/path/to/lambda-local/node_modules' | ||
export AWS_ACCESS_KEY_ID='yourKeyId' | ||
export AWS_SECRET_ACCESS_KEY='yourSecretKey' | ||
``` | ||
@@ -47,0 +57,0 @@ |
Sorry, the diff of this file is not supported yet
9611
12
219
63