diff --git a/serverless/aws/README.md b/serverless/aws/README.md index b7fda6d..1caa8e0 100644 --- a/serverless/aws/README.md +++ b/serverless/aws/README.md @@ -19,9 +19,11 @@ Configure these Lambda environment variables: * Example path setting for objects in a directory: `my_folder/{name}/file.pmtiles` * `TILE_PATH`: optional, define the URL route of the tiles API. Default `/{name}/{z}/{x}/{y}.pbf` +For API Gateway integration, your Lambda Proxy Integration route will need to specify a greedy capturing parameter called `tile_path` e.g. `/tiles/{tile_path+}` + ## Test Event -API Gateway V2 / Lambda Function URLs: +Lambda Function URLs: ```json { @@ -29,6 +31,16 @@ API Gateway V2 / Lambda Function URLs: } ``` +API Gateway (HTTP or REST): + +```json +{ + "pathParameters": { + "tile_path": "my-tileset-name/0/0/0.pbf" + } +} +``` + ### Monitoring