improvements to lambda wrapper [#13]

This commit is contained in:
Brandon Liu
2022-07-05 21:26:13 +08:00
parent f442e403c5
commit fbc7b02123
5 changed files with 95 additions and 21 deletions
+21 -1
View File
@@ -7,4 +7,24 @@
2. Create a ZIP archive with the `tippecanoe` binary at `bin/tippecanoe` and upload as a Lambda layer
3. Copy [lambda_function.py](lambda_function.py) (python 3.9 runtime)
4. set the environment variable `OUTPUT_BUCKET` to your output bucket; give lambda IAM role access to input/output buckets
4. set the environment variable `OUTPUT_BUCKET` to your output bucket; give lambda IAM role access to input/output buckets
```json
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowGet",
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::tippecanoe-lambda-input/*"
},
{
"Sid": "AllowPut",
"Effect": "Allow",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::tippecanoe-lambda-output/*"
}
]
}
```