python - How to install pymysql on AWS lambda -
i've looked here , here i've been trying work out how pymysql running on aws lambda. examples i've looked @ far extremely complex, , github tutorial got far iam before started running permissions errors didn't know how solve.
literally, want able call import pymysql within prebuilt aws lambda console template.
it seems simple problem, i'm having hard time finding clear, step-by-step work through of how new dependencies work lambda function. ideally example not via aws cli, since apparently there console option , seems take of headache out of process.
cheers,
aaron
i facing similar problem redis python library. follow same documentation instructions mentioned in second link.
here example snippet reference :
create new directory mypythonlambda , put mypythonlambda.py in same.
assume mypythonlambda/mypythonlambda.py main lambda containing handler.
cd mypythonlambda/ pip install redis -t . zip -r mypythonlambda.zip * upload/import zip in lambda creation s3 or local file system.
i think need create zip file in similar way containing python mysql library.
Comments
Post a Comment