boaviztapi
boaviztapi copied to clipboard
Document serverless deployment (as aws lambda)
Problem
API can be deployed as aws lambda but it is not described in the doc.
Solution
- verify that the serverless deployment stills works OK (not tested in a while....)
- Add a paragraph in the deploy section of documentation: https://doc.api.boavizta.org/Reference/deploy/
Alternatives
Additional context or elements
A quick test shows that existing serverless config does not deploy anymore 😢
Seems related to the size of un-zippped python deps > 250 MB (which is default lambda limit).
An alternative for a quick workaround could be to deploy a docker image to lambda. See:
- https://www.serverless.com/blog/container-support-for-lambda
- https://appliedaiconsulting.com/how-to-deploy-lambda-container-image-using-serverless-framework/
If confirmed I'll move it to it's own issue.