https://github.com/jameskyburz/local-lambda-invoke
https://github.com/jameskyburz/local-lambda-invoke
aws aws-lambda aws-lambda-invoke development node
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jameskyburz/local-lambda-invoke
- Owner: JamesKyburz
- Created: 2019-02-25T08:02:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T08:05:46.000Z (about 5 years ago)
- Last Synced: 2025-03-17T05:05:41.227Z (4 months ago)
- Topics: aws, aws-lambda, aws-lambda-invoke, development, node
- Language: JavaScript
- Size: 1.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# local-lambda-invoke
Support a lambda calling another lambda for local use only.
[](https://github.com/feross/standard)
[](https://greenkeeper.io/)
[](https://travis-ci.org/JamesKyburz/local-lambda-invoke)
[](https://npmjs.org/package/local-lambda-invoke)### usage
```javascript
const Lambda = require('aws-sdk/clients/lambda')
const localLambdaInvoke = require('local-lambda-invoke')(Lambda)Lambda[Symbol.for('localHandlers')] = {
async 'test-lambda' (event, context) { return 'okidoki' }
}const params = {
FunctionName: 'test-lambda',
Payload: JSON.stringify({ testing: true }),
InvocationType: 'Event',
LogType: 'None',
Qualifier: '$LATEST'
}const lambda = new Lambda()
lambda.invoke(params).promise().then(console.log, console.error)```
# license
[Apache License, Version 2.0](LICENSE)