Replace the code in lambda_function.py with your python function and put the required packages in the requirements.txt file. Then run ./make_package.sh to make deployment package.
Create a lambda function on AWS using aws-console or aws-cli and upload the src.zip .