1.0.24 • Published 4 years ago

local-lambda-invoke v1.0.24

Weekly downloads
17
License
Apache-2.0
Repository
github
Last release
4 years ago

local-lambda-invoke

Support a lambda calling another lambda for local use only.

js-standard-style Greenkeeper badge build status downloads

usage

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

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.0

5 years ago

0.0.3

5 years ago

0.0.1

5 years ago