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

Create an AWS Lambda compat layer #1

Open
No9 opened this issue Dec 7, 2020 · 12 comments
Open

Create an AWS Lambda compat layer #1

No9 opened this issue Dec 7, 2020 · 12 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@No9
Copy link
Collaborator

No9 commented Dec 7, 2020

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

@pepoviola
Copy link

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.

@No9
Copy link
Collaborator Author

No9 commented Dec 7, 2020

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.

@pepoviola
Copy link

Ahh yes, you need the extra work to make it works in lambda. 👍

@pepoviola
Copy link

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!

@No9
Copy link
Collaborator Author

No9 commented Dec 19, 2020

Thanks @pepoviola
I've also started on the rust build

@pepoviola
Copy link

Thanks @pepoviola

I've also started on the rust build

Ahh that great! Let me know if I can help you.

@No9
Copy link
Collaborator Author

No9 commented Dec 20, 2020

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

@pepoviola
Copy link

Sounds great!

@No9 No9 added enhancement New feature or request help wanted Extra attention is needed labels Jan 3, 2021
@pepoviola
Copy link

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!

@No9
Copy link
Collaborator Author

No9 commented May 20, 2021

Awesome news - Thanks for the update!!

@pepoviola
Copy link

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!

@No9
Copy link
Collaborator Author

No9 commented Jul 9, 2021

Hey @pepoviola very cool - i'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants