Files
PMTiles/serverless/aws
Brandon Liu 61e60c69d2 Make aws/cloudflare depend on pmtiles from npm [#455] (#515)
* Make aws/cloudflare depend on pmtiles from npm [#455]

This is clearer to developers than relying on the local code being built.

* update check_examples.py
* bump openlayers to v2 with upgrade of pmtiles to v4 [#455]
* update to 4.2.1
2025-01-14 17:09:11 +08:00
..
2024-07-09 10:11:33 +02:00
2024-09-11 13:45:40 +08:00
2024-09-19 10:05:41 +08: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-zip

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"
  }
}