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
AWS Lambda support (Docker) #540
Comments
Hello @vigneshgurusamy, Why not 👍 Last time I checked though, there were some limitations regarding the payload size for HTTP requests, which may be limiting for some features. |
Also #770 (comment). |
@gulien I would like to work on this. I'm newbie when it comes to open source contribution. |
Feel free to try @goyal-aman! |
Hi @goyal-aman, I found something that could be helpful: aws-lambda-web-adapter. I've built an image using the Dockerfile below, and deployed it to AWS Lambda (including a function URL):
I can now invoke the Lambda via its URL, for example (in python):
The aws-lambda-web-adapter works as expected, and the request is passed to the gotenberg API.
Any idea how to solve this issue? |
Thanks @f-dig for your investigations! Most I/O operations in Gotenberg are occurring within the
You'll have to find what are those file, and if a flag exist to specify a directory for them. |
@gulien: it looks like LibreOffice uses the HOME env var to determine where to write files. I have now managed to solve the above issue by setting it to I also added the auto-start option to the Dockerfile:
Unfortunately, there is still an open issue. I try to convert a 25 KB .odt file, and the response content that I get back is empty:
|
Maybe there is an intermediary service that removes the body for whatever reason? Does it works with the Chromium module? |
The Chrome module fails to start:
Anyway, due to the AWS Lambda payload limit of 6 MB, it may not be the best service to use here. |
I'm pretty sure it will work with AWS Fargate 👍 Also, a proven serverless solution for container is Google Cloud Run. Not sure it's worth the hassle with AWS Lambda. |
Hi,
From early 2021, AWS lambda supports docker based deployment which supports upto 10GB in container image size.
https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/
Do you have a plan to support lambda based deployment using docker in the future releases?
The text was updated successfully, but these errors were encountered: