RasterIO Python Module as AWS Lambda Layer
Upload the build/package_rio.zip file to an S3 bucket to create a layer (see Usage). You can optionally use the Docker script to build the package from scratch. Extends this work by Vincent Sarago at Mapbox.
Currently build is for Python 3.8 with RasterIO 1.1.8.
- Upload
build/package_rio.zipto an S3 bucket. - Create a Lambda layer using this package through the AWS console.
Inside your Lambda code:
import sys
sys.path.append('/opt') # Add the /opt path so Python can find the modules
import rasterioTo build your own package (requires docker running on Linux):
makePRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
BSD-3-Clause © 2019 Addresscloud