anyone have a modern container workflow for the serverless framework?
I was able to find code that executed at one point in time. It no longer does.
I’d really like to instead get fresh or deno into a container and use serverless to make it work on aws. this is at least as of current a requirement for all code at my workplace and is a hard must to hit production with deno.
9 Replies
Gpt was rabbit holing into irrelevant nonsense
Specifically getting it working with serverless framework ; the terminology in this space is HORRENDOUS
You can use the image and docker file to deploy using Serverless framework
http://serverless.com//blog/container-support-for-lambda
https://github.com/hayd/deno-lambda/tree/master/example-serverless
We usted to have deno api running on AWS LAMBDA with the combination of this articles and a more simplier Serverless yml
Container Image Support for AWS Lambda
Container Image Support for AWS Lambda has now been added. Read up on why you may (or may not) want to use it and how easy it is to use with the framework
GitHub
deno-lambda/example-serverless at master · hayd/deno-lambda
A deno runtime for AWS Lambda. Deploy deno via docker, SAM, serverless, or bundle it yourself. - hayd/deno-lambda
Give it a read to the repository and the article it was pretty simple, we moved to deno deploy due the lower cold starts, thats why currently i dont have an example, let me know if u cant to try to setup a basic example
Unfortunately I have a codified requirement to utilize serverless for 100% of AWS infra at my company 😭
There’s hardline requirements for access to internal networks no meshing nothing allowed
I did find and old test trying to use OAK https://github.com/fro-profesional/POC/tree/main/aws-deno
GitHub
POC/aws-deno at main · fro-profesional/POC
Proof of concept. Quick test of different things. Contribute to fro-profesional/POC development by creating an account on GitHub.
Let me know if it helps
But in short:
Define
serverless.yml
| .ts
| .js
Define Dockerfile
Define handler
thanks! this is what I was looking for