package-python.sh mistakes?
drzhouq opened this issue · 0 comments
drzhouq commented
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.