Files
PMTiles/serverless/aws
Blayne Chard d1ea859443 add ETag and cache-control headers for 200 responses (#231)
* add etag and cache control headers for 200 responses

* fixup eTag -> ETag
2023-08-08 11:11:42 +08:00
..
2023-03-06 16:23:36 +00:00
2022-11-22 10:59:09 +08:00

Protomaps on AWS

See installation and configuration instructions at Protomaps Docs: Deploy on AWS

Development

The code for the lambda function imports from the top level js/ directory. You will therfore need to first run npm install and npm run build in the js/ directory, and then run npm install in the serverless/aws directory.

You should then be able to build the Lambda ZIP:

npm run build

Upload the resulting dist/lambda_function.zip using the Lambda console or copy and paste dist/index.mjs.

Test Events

JSON for simulating tile requests in the Lambda development console.

Lambda Function URLs:

{
  "rawPath": "/my-tileset-name/0/0/0.mvt"
}

API Gateway (REST API with Lambda Proxy Integration):

{
  "pathParameters": {
   "proxy": "my-tileset-name/0/0/0.mvt"
  }
}