Deno.serve with aws-lambda-adapter
I went through this tutorial on How to Deploy Deno to AWS Lambda
https://docs.deno.com/runtime/tutorials/aws_lambda/
and it worked with the Hello World example provided. It uses aws-lambda-adapter to adapt HTTP servers to the AWS Lambda runtime
https://github.com/awslabs/aws-lambda-web-adapter
In theory this is great as you can test locally as a web server and deploy the same code as a lambda function.
Unfortunately I was unable to get working anything more complicated that Hello World. It seems that the parameter passed in to the handler function is an empty object, so no request method, params or body.
Has anyone managed to do figure out how to provide request context to the handler?
Deno
How to Deploy Deno to AWS Lambda
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
GitHub
GitHub - awslabs/aws-lambda-web-adapter: Run web applications on AW...
Run web applications on AWS Lambda. Contribute to awslabs/aws-lambda-web-adapter development by creating an account on GitHub.
1 Reply
Also wondering about this. Same issue