Giter Club home page Giter Club logo

aws-lambda-proxy's People

Contributors

andreineculau avatar jannorden avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-lambda-proxy's Issues

override lambda env vars

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

cc @tobiiasl @IanSavchenko

revamp aws-lambda-proxy

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

  • integrate with ngrok, in order to bypass NATs
  • implement a unique auth token so that the local server cannot be called without it
  • assume lambda roles, in order to simulate even closer the lambda runtime constraints
  • ?

// cc @tobiiasl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.