Configured to deploy a TensorFlow model to AWS Lambda using the Serverless framework.
by: Mike Moritz
More info here: https://coderecipe.ai/architectures/16924675
npm install serverless
serverless plugin install -n serverless-python-requirements
pip install -r requirements.txt
Make sure you have AWS access key and secrete keys setup locally, following this video here
serverless create --template-url https://github.com/mikepm35/TfLambdaDemo --path tf-lambda
In serverless.yml:
environment:
BUCKET: <your_unique_bucket_name>
cd tf-lambda
npm install
serverless deploy --stage <your-stage-name>