Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.3 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.3 KB

datasette-aws-lambda-example

This is a rough sketch showing how to deploy datasette on aws lambda.

The example uses spatialite and the datasette-geojson plugin.

It takes advantage of the somewhat recent support for docker container images and the lambda python runtime interface client.

Next steps

This project probably shouldn't be used directly.

Creating a publish plugin for aws lambda should happen next.

Running the example

The serverless command should build and push the docker image to ECR, then deploy the function that uses that image. It also sets up API gateway for the function.

I've used serverless here just because it's easy for prototyping, but other deployment tools should work as well.