boaviztapi icon indicating copy to clipboard operation
boaviztapi copied to clipboard

Document serverless deployment (as aws lambda)

Open demeringo opened this issue 2 years ago • 1 comments

Problem

API can be deployed as aws lambda but it is not described in the doc.

Solution

  1. verify that the serverless deployment stills works OK (not tested in a while....)
  2. Add a paragraph in the deploy section of documentation: https://doc.api.boavizta.org/Reference/deploy/

Alternatives

Additional context or elements

demeringo avatar Feb 05 '23 16:02 demeringo

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.

demeringo avatar Feb 05 '23 16:02 demeringo