Create an AWS Lambda compat layer
In order to run this on AWS lambda a set of tide APIs need to be built into a base image to interact with the base platform. The APIs are specified here https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html
Hi @No9, aws lambda now support containers ( https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/ ) and may this be a more simple way to make it works, but a custom runtime sounds good also.
Thanks @pepoviola that's not what I took from the announcement. In the link above it says:
You can deploy your own arbitrary base images to Lambda, for example images based on Alpine or Debian Linux. To work with Lambda, these images must implement the Lambda Runtime API.
I may have misunderstood the article (I'm happy to be wrong). From what I can tell amazon given access to the container version of the runtimes they support but if you're using something different like rust you're on your own.
Ahh yes, you need the extra work to make it works in lambda. 👍
Hi @No9, I found this repo that add a runtime for running docker images in awa lambda https://github.com/glassechidna/serverlessish . Could be a good starting point for this issue.
Thx!
Thanks @pepoviola I've also started on the rust build
Thanks @pepoviola
I've also started on the rust build
Ahh that great! Let me know if I can help you.
I'll get it feature comparative with the script and push it out. Once we have the lambda compat layer we might also want to look at this from the JSFoundation for inspiration / integration? https://arc.codes/docs/en/guides/get-started/why-architect
Sounds great!
Hi @No9, Jeremiah publish a lambda listener for tide yesterday ( https://github.com/Fishrock123/tide-lambda-listener ), I think exploring how to integrate with roche would be a nice step forward 👍
We can maybe add sam cli to run locally and deploy to aws :D
Thx!
Awesome news - Thanks for the update!!
Hi @No9, I just created an example app using the lambda listener. Is a little bit hacky how to use the build.rs file to only compile the needed code buts works. This is the repo if you want to take a look https://github.com/pepoviola/tide-lambda-listener-example
Thx!
Hey @pepoviola very cool - i'll take a look