Skip to content

mikepm35/TfLambdaDemo

Repository files navigation

Serverless Machine Learning on AWS Lambda with TensorFlow

Configured to deploy a TensorFlow model to AWS Lambda using the Serverless framework.

by: Mike Moritz

More info here: https://coderecipe.ai/architectures/16924675

Prerequisites

Setup serverless

npm install serverless

serverless plugin install -n serverless-python-requirements

pip install -r requirements.txt

Setup AWS credentials

Make sure you have AWS access key and secrete keys setup locally, following this video here

Download the code locally

serverless create --template-url https://github.com/mikepm35/TfLambdaDemo --path tf-lambda

Update S3 bucket to unique name

In serverless.yml:

  environment:
    BUCKET: <your_unique_bucket_name> 

Deploy to the cloud

cd tf-lambda

npm install

serverless deploy --stage <your-stage-name>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages