Sign inSign up

njmote/lambda-pip

By njmote

•Updated over 8 years ago

Docker Function to Help Package Python/PIP apps for AWS Lambda

Image
0

945

njmote/lambda-pip repository overview

⁠Lambda PIP Install Helper

Trying to add pip installs to your AWS Lambda functions? Here's a simple tool to help.

⁠Instructions

  1. Install Docker
  2. Create DIR with your lambda_function.py file
  3. Execute the following docker command. Update env variable with your pip install package(s). Update local folder location to DIR from step 2.
  4. Upload generated zip file to AWS Lambda.
  5. 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"

Tag summary

Content type

Image

Digest

Size

211.5 MB

Last updated

over 8 years ago

docker pull njmote/lambda-pip