Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
66 stars 23 forks source link

Document serverless deployment (as aws lambda) #152

Open demeringo opened 1 year ago

demeringo commented 1 year ago

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 commented 1 year ago

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:

If confirmed I'll move it to it's own issue.