mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 16:35:40 +02:00
893 B
893 B
Build the tippecanoe layer (binary)
-
On an AWS Linux 2 instance or image:
sudo yum update sudo yum install git clang sqlite-devel zlib-devel
-
Create a ZIP archive with the
tippecanoebinary atbin/tippecanoeand upload as a Lambda layer -
Copy lambda_function.py (python 3.9 runtime)
-
set the environment variable
OUTPUT_BUCKETto your output bucket; give lambda IAM role access to input/output buckets
{
"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/*"
}
]
}