sethvincent / datasette-aws-lambda-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:Python 55.3%Language:Dockerfile 44.7%