fetch for lambda bypassing api gateway
fetch for lambda bypassing api gateway
The payload sent and received from lambda assumes the api gateway format.
Only multiValueHeaders and multiValueQueryStringParameters are supported.
const fetch = require('fetch-lambda')
fetch('aws-lambda://function:version/path', fetchOptions)
// if no :version is given then the latest lambda is invoked.