Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (15 loc) · 796 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 796 Bytes

About

This project builds and deploys an AWS Lambda layer that supports GDAL 3.0.4 for Python 3.8.1.

Build the Layer

aws cloudformation deploy --stack-name gdal-layer --template-file cloudformation.yaml --capabilities CAPABILITY_NAMED_IAM

aws codebuild start-build --project-name gdal-layer

Use the Layer

  1. Create a new lambda function with the python 3.8 runtime
  2. Attach the layer to your function
  3. Set environment variable GDAL_DATA=/opt/lib/data
  4. Add from osgeo import gdal to your function code
  5. Enjoy!

Additional Resources

Geospatial Data Abstraction Library

GDAL on PyPI

AWS Lambda Layers