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

Have something like lambdaurl for APIGatewayV2? #579

Open
arianvp opened this issue Dec 27, 2024 · 3 comments
Open

Have something like lambdaurl for APIGatewayV2? #579

arianvp opened this issue Dec 27, 2024 · 3 comments

Comments

@arianvp
Copy link

arianvp commented Dec 27, 2024

Is your feature request related to a problem? Please describe.

Would be nice to write Lambdas that are behind api gateway v2 easily

Describe the solution you'd like

Be able to turn a http.Handler into a handler for APIGatewayV2 events

Describe alternatives you've considered

Write my own

Additional context
Add any other context or screenshots about the feature request here.

@arianvp
Copy link
Author

arianvp commented Dec 27, 2024

Oh I just learnt they use the same event format. TIL.

So I guess I can just use lambdaurl for api gateway v2 lambda

https://docs.aws.amazon.com/lambda/latest/dg/urls-invocation.html

@arianvp
Copy link
Author

arianvp commented Dec 27, 2024

Hmm unfortunately the Authorizer field throws away JWT information and only has IAM information so not fully.

@arianvp
Copy link
Author

arianvp commented Dec 27, 2024

Ah and the other problem is that API Gateway doesn't have the streaming response like lambda url has.

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

1 participant