Skip to content

Instantly share code, notes, and snippets.

@mathisve
Created August 26, 2020 13:23
Show Gist options
  • Save mathisve/adff5e3f88becbf992444877aa7b2632 to your computer and use it in GitHub Desktop.
Save mathisve/adff5e3f88becbf992444877aa7b2632 to your computer and use it in GitHub Desktop.
Upload python codebase & libraries to AWS Lambda
#!/usr/bin/env bash
# pip3 install --target ./package Pillow
cd package
zip -r9 ${OLDPWD}/archive.zip .
cd $OLDPWD
zip -g archive.zip main.py chromedriver
echo "UPLOADING archive.zip to AWS"
aws lambda update-function-code --function-name pythontest --zip-file fileb://archive.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment