I followed the following steps to create a layer to use in my AWS Lambda function.
Downloaded the pyarrow library to python folder using the following command
pip install pyarrow==5.0.0 -t python
Then recursively zipped the python folder
zip -r pyarrow.zip python/
Uploaded the zipped file using the AWS Lambda UI and successfully created a layer.
Added the layer to my lambda function.
However when I try to import pyarrow I get the following error.
[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': No module named 'pyarrow.lib'
I downloaded the the zip file. I can see the pyarrow folder in it. But for some reason Lambda can't find the pyarrow. Any suggestions or advice where I could have made a mistake?