Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revamp aws-lambda-proxy #6

Open
andreineculau opened this issue Feb 7, 2020 · 0 comments
Open

revamp aws-lambda-proxy #6

andreineculau opened this issue Feb 7, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@andreineculau
Copy link
Contributor

andreineculau commented Feb 7, 2020

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

@andreineculau andreineculau added the enhancement New feature or request label Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant