DenoDDeno
Powered by
squizS
Denoβ€’17mo agoβ€’
2 replies
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?
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
How to Deploy Deno to AWS Lambda
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.
GitHub - awslabs/aws-lambda-web-adapter: Run web applications on AW...
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Using deno-lambda for AWS SAM
abiAabi / help
3y ago
AWS Lambda config
ManaMMana / help
3y ago