Trying to add pip installs to your AWS Lambda functions? Here's a simple tool to help.
- Install Docker
- Create DIR with your lambda_function.py file
- Execute the following docker command. Update env variable with your pip install package(s). Update local folder location to DIR from step 2.
- Upload generated zip file to AWS Lambda.
- Enjoy :)
docker run -it -e pip="pymysql" -v //c/Users/your_local_dir/:/working --rm njmote/lambda-pip
tip: Seperate pip installs with spaces. ie. pip="pymysql ipykernel"