How to test a Python AWS Lambda function locally with PyCharm Run Configurations

Disclaimer: I am a Sr. Product Manager for AWS but this post is not endorsed by AWS in any way.

pip install python-lambda-local

python-lambda-local -f lambda_handler event.json

PyCharm main menu > Preferences > Plugins (left pane) > Browse Repositories…

echo “Testing lambda”
python-lambda-local -f $1 $2 $3



I code things up, write music and try to make sense of the world. Product Manager @ AWS. Wharton MBA. Ex-DHL. All opinions are my own.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store