Created
August 26, 2020 13:23
-
-
Save mathisve/adff5e3f88becbf992444877aa7b2632 to your computer and use it in GitHub Desktop.
Upload python codebase & libraries to AWS Lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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