tobiipro / aws-lambda-proxy Goto Github PK
View Code? Open in Web Editor NEWAn HTTP proxy, running `express`, that maps to AWS Lambdas, either remote or locally.
License: Apache License 2.0
An HTTP proxy, running `express`, that maps to AWS Lambdas, either remote or locally.
License: Apache License 2.0
from bunyan
along with simulating the getRemainingTimeInMillis
github.com/tobiipro/aws-lambda-proxy/blob/bb8016e/src/express-app.js#L83
https://github.com/tobiipro/aws-lambda-proxy/blob/master/src/handlers/local.js#L22 and https://github.com/tobiipro/aws-util-firecloud/blob/master/src/lambda/env-ctx.js#L127 makes it impossible to override lambda's env vars e.g. LOG_LEVEL
for the time being, I reckon that it is by design (lambda's env vars should not be overridden; otherwise the logic becomes even more complicated and error prone).
if it's not by design, we might want to allow this
to be http-agnostic and allow debugging any lambda triggered by any service
gist of v1 UX:
$ aws-lambda-proxy \
--function-name <value> \
--ip <value> \
--port <value> \
[--listen | --no-listen]
$ cd path/to/aws/lambda/code
$ aws-lambda-proxy-listen \
--runtime <value> \
--ip <value> \
--port <value> \
at this point all calls to your lambda inside the AWS walls will proxy everythint (event, context, process.env, smth else?) to your local server started by aws-lambda-proxy-listen
that will call the main function on each request
v1 can be as simple as that, supporting nodejs only. future versions could
// cc @tobiiasl
Now fails badly with bluebird error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.