mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
36 lines
631 B
Markdown
36 lines
631 B
Markdown
# Protomaps on AWS
|
|
|
|
See installation and configuration instructions at [Protomaps Docs: Deploy on AWS](https://protomaps.com/docs/cdn/aws)
|
|
|
|
## Development
|
|
|
|
Building the Lambda ZIP yourself:
|
|
|
|
```sh
|
|
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:
|
|
|
|
```json
|
|
{
|
|
"rawPath": "/my-tileset-name/0/0/0.mvt"
|
|
}
|
|
```
|
|
|
|
API Gateway (REST API with Lambda Proxy Integration):
|
|
|
|
```json
|
|
{
|
|
"pathParameters": {
|
|
"proxy": "my-tileset-name/0/0/0.mvt"
|
|
}
|
|
}
|
|
```
|