AWS API Gateway + Lambda proxy integration dev server
npm install proxylAWS API Gateway + Lambda proxy integration dev server.
Lifts your Lambda function into a web server that mimics the request/response format of an API Gateway proxy integration. Reloads on file changes with the power of nodemon.
``
Usage: proxyl [options] path/to/file.handlerName
Options:
-a, --auth
-p, --port
-w, --watch
-h, --help output usage information
`
The path/to/file.handlerName should be the same as the handler option specified for your Lambda function.
The -a option allows you to register a Lambda authorizer. To keep things simple, proxyl:
- Only supports TOKEN type authorizers, with the token in the authorization header.403
- Will not cache the output of your authorizer.
- Will only for a policy with "Effect": "Deny", regardless of the "Resource".
Any "context" included in the returned policy will be added to the request as event.requestContext.authorizer to simulate how that works in a real API Gateway.
Feel free to watch multiple paths with multiple -w options, like this:
```
proxyl -w dist -w src src/index.handler