Skip to content

Instantly share code, notes, and snippets.

@EngineerLabShimazu
Created October 30, 2019 06:08
Show Gist options
  • Save EngineerLabShimazu/6947fb0950d05222d516a5b29aa9e181 to your computer and use it in GitHub Desktop.
Save EngineerLabShimazu/6947fb0950d05222d516a5b29aa9e181 to your computer and use it in GitHub Desktop.
Deploy to lambda in python3.7
#!/usr/bin/env bash
LAMBDA_NAME="your-lambda-name"
cd venv/lib/python3.7/site-packages
zip -r9 ${OLDPWD}/function.zip .
cd ${OLDPWD}
cd ./lambda/custom/
zip -g ../../function.zip your_function.py
cd ${OLDPWD}
aws lambda update-function-code \
--function-name ${LAMBDA_NAME} \
--zip-file fileb://function.zip
@zynaxsoft
Copy link

いいですね!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment