Skip to content

gateway bindings #13

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

Closed
srijs opened this issue Nov 29, 2018 · 5 comments
Closed

gateway bindings #13

srijs opened this issue Nov 29, 2018 · 5 comments
Milestone

Comments

@srijs
Copy link
Contributor

srijs commented Nov 29, 2018

Hi!

It's great to see official lambda support for Rust!

Over at https://github.com/srijs/rust-aws-lambda, we have been building a lambda runtime and various auxiliary crates. We will start to redirect users of the runtime parts over to the official runtime, but similar to #12 I'm keen to hear whether there is interest on your side to move some of the other auxiliary crates.

In particular, there are bindings that translate between the API Gateway proxy events and the types provided by the http crate. I'm happy to continue to provide these myself, but I'd like to avoid any duplication of effort, so if you'd like to incorporate these please let me know!

@davidbarsky davidbarsky added this to the 0.2 milestone Nov 29, 2018
@davidbarsky
Copy link
Contributor

Over at https://github.com/srijs/rust-aws-lambda, we have been building a lambda runtime and various auxiliary crates. We will start to redirect users of the runtime parts over to the official runtime, but similar to #12 I'm keen to hear whether there is interest on your side to move some of the other auxiliary crates.

In particular, there are bindings that translate between the API Gateway proxy events and the types provided by the http crate. I'm happy to continue to provide these myself, but I'd like to avoid any duplication of effort, so if you'd like to incorporate these please let me know!

We'd be super happy to accept any auxiliary crate from rust-aws-lambda! I'd also like to explore how we can support how Lambda accepts HTTP requests as a target of an Application Load Balancer. I suspect the interaction would be pretty similar.

@danielhstahl
Copy link

So does this official library not support http events yet?

@sapessi
Copy link
Contributor

sapessi commented Nov 30, 2018

No @phillyfan1138, this library only takes care of interacting with the Runtime APIs and start your handler function. To handle API Gateway proxy events or ELB requests you'd need to provide your structs that mirror the event types. Take a look at this crate. We are exploring taking this over in the future (#12)

@softprops
Copy link
Contributor

I think we may be able to close this now that lambda-http has landed

@srijs
Copy link
Contributor Author

srijs commented Dec 9, 2018

Yay, good job @softprops!

@srijs srijs closed this as completed Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants