4. How about python&ML stuff?
pip install -r requirements.txt -t build
cp index.py build
cd build && zip -r ../build.zip & cd ..
specify output folder
this is sent to aws
5. How about python&ML stuff?
aws lambda update-function-code
--function-name ${FUNCTION_NAME}
--s3-bucket ${S3_BUCKET}
--s3-key ${ZIP_FILE}
16. Keras models in Lambda
● Convert Keras to TF
● Save the model to s3
● During lambda startup
○ Download the model from s3
○ Put to /tmp
○ Load the model
○ Don’t delete from /tmp - new lambdas startup will be faster