Skip to content

Adding AWS Lambda proxy integration

Compare
Choose a tag to compare
@jkyberneees jkyberneees released this 04 Apr 18:37
· 199 commits to master since this release

Supporting HTTP proxying to lambda functions.

Just that simple:

const gateway = require('fast-gateway')
const server = gateway({
  routes: [{
    proxyType: 'lambda',
    prefix: '/service',
    target: 'my-lambda-serverless-api',
    lambdaProxy: {
      region: 'eu-central-1'
    }
  }]
})

server.start(8080)