Wish to proceed the discussion after a long time. I've just tried above two repositories, and they all reported to me that the gdal cannot be imported.
"arn:aws:lambda:us-east-1:552188055668:layer:geolambda:4"
"arn:aws:lambda:us-east-1:552188055668:layer:geolambda-python:3"
with environment variables:
GDAL_DATA=/opt/share/gdal
PROJ_LIB=/opt/share/proj (only needed for GeoLambda 2.0.0+)
I just add one line in python "from osgeo import gdal" It shows error like cannot import gdal.
{
"region": "us-east-1",
"layers": [
{
"name": "gdal38",
"arn": "arn:aws:lambda:us-east-1:524387336408:layer:gdal38:4",
"version": 4
}
]
},
And with recommended environment variables.
GDAL_DATA: /opt/share/gdal
PROJ_LIB: /opt/share/proj
Also, I got the same error with cannot find gdal. Do you have any idea if I configure some wrong during the approach?