squiz
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?
3 replies