Pandas & AWS Lambda -
does have compiled version of pandas compatible aws lambda?
after searching around few hours, cannot seem find i'm looking , documentation on subject non-existent.
i need access package in lambda function have been unsuccessful @ getting package compile usage in lambda function.
in lieu of compilation can provide reproducible steps create binaries?
unfortunately have not been able reproduce of guides on subjects combine pandas scipy don't need , adds layer of burden.
i believe should able use recent pandas version (or likely, 1 on machine). can create lambda package pandas this,
first find pandas package installed on machine i.e. open python terminal , type
import pandas pandas.__file__
that should print
'/usr/local/lib/python3.4/site-packages/pandas/__init__.py'
- now copy pandas folder location (in case
'/usr/local/lib/python3.4/site-packages/pandas
) , place in repository. package lambda code pandas this:
zip -r9 my_lambda.zip pandas/ zip -9 my_lambda.zip my_lambda_function.py
you can deploy code s3 , make lambda use code s3.
aws s3 cp my_lambda.zip s3://dev-code//projectx/lambda_packages/
Comments
Post a Comment