<div dir="ltr">I have no direct experience, but there are plenty of resources on the web for how to install GDAL on Lambda:<div><br></div><div><a href="https://github.com/mmcfarland/foss4g-lambda-demo">https://github.com/mmcfarland/foss4g-lambda-demo</a> (presentation <a href="https://vimeo.com/234947418">https://vimeo.com/234947418</a>)<br></div><div><a href="https://github.com/joshtkehoe/lambda-python-gdal">https://github.com/joshtkehoe/lambda-python-gdal</a><br></div><div><br></div><div>Both are using python 2.7, but the steps should be translatable to 3.6 as your biggest issue is likely to be the size of linked binaries which should be similar under both versions.</div><div><br></div><div>Cheers</div><div>Jeremy</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 13, 2018 at 7:31 AM kch <<a href="mailto:kchin@edrnet.com">kchin@edrnet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, <br>
<br>
I am looking for any help from anyone who has experience with using GDAL on<br>
AWS Lambda. I am trying to deploy a python function which uses GDAL onto AWS<br>
Lambda. At the moment I am using Serverless to package and deploy my<br>
function. I am at a roadblock because I can't figure out how to get all the<br>
dependencies into my deployment package. My Serverless function packages the<br>
dependencies listed in a requirements.txt using the<br>
serverless-python-requirements plugin and dockerizePip: true option. At<br>
deployment, I get the error: <br>
<br>
Serverless: Installing requirements of requirements.txt in .serverless…<br>
Serverless: Docker Image: lambci/lambda:build-python3.6<br>
Error --------------------------------------------------<br>
The directory ‘/.cache/pip/http’ or its parent directory is not owned by the<br>
current user and the cache has been disabled. Please check the permissions<br>
and owner of that directory. If executing pip with sudo, you may want sudo’s<br>
-H flag.<br>
The directory ‘/.cache/pip’ or its parent directory is not owned by the<br>
current user and caching wheels has been disabled. check the permissions and<br>
owner of that directory. If executing pip with sudo, you may want sudo’s -H<br>
flag.<br>
Command “python setup.py egg_info” failed with error code 1 in<br>
/tmp/pip-install-yo9exd91/pygdal/<br>
For debugging logs, run again after setting the “SLS_DEBUG=*” environment<br>
variable.<br>
<br>
I have already updated setuptools to the latest version and even included<br>
the latest version of setuptools in requirements.txt. I think the problem is<br>
that at deployment, Serverless does not pick up all the non-python<br>
dependencies of GDAL. I don't know how to work around this. <br>
<br>
I am running on Ubuntu 16.04 and Python3.6. Thank you in advance.<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html</a><br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div>