Run locally

Install python-lambda-local to run localy.

pip3 install python-lambda-local

Then, just:

python-lambda-local -f handler handler.py event.json

Deploy

Follow this guide provided by AWS.

With a virtual environment section! I named the bundle with the deppendencies site-packages.zip, and the complete bundle function.zip.