developmentseed / geolambda

Create and deploy Geospatial AWS Lambda functions
MIT License
303 stars 85 forks source link

package-python.sh mistakes? #103

Open drzhouq opened 3 years ago

drzhouq commented 3 years ago

In the package-python.sh, the /lib and /share folders are copied down to the /lambda folder, then zipped under ./python. Although the python/lambda-deploy.zip contains /lib and /share, but they are under ./python/share ./python/lib. This makes them not available as /opt/lib/ /opt/share when it deploys to lambda as a single layer.

Therefore, the zip command needs to be modified to make sure /lib and /share is at the same level of ./python, not under .python.