simonw/datasette

datasette publish lambda plugin

Open

#236 aperta il 23 apr 2018

Vedi su GitHub
 (11 commenti) (2 reazioni) (0 assegnatari)Python (625 fork)batch import
datasette-publishfeaturehelp wanted

Metriche repository

Star
 (8637 star)
Metriche merge PR
 (Merge medio 67g 23h) (19 PR mergiate in 30 g)

Descrizione

Refs #217 - create a publish plugin that can deploy to AWS Lambda.

https://docs.aws.amazon.com/lambda/latest/dg/limits.html says lambda packages can be up to 50 MB, so this would only work with smaller databases (the command can check the filesize before attempting to package and deploy it).

Lambdas do get a 512 MB /tmp directory too, so for larger databases the function could start and then download up to 512MB from an S3 bucket - so the plugin could take an optional S3 bucket to write to and know how to upload the .db file there and then have the lambda download it on startup.

Guida contributor