Skip to content

saadhaxxan/AWS-Lambda-Model-Deployment

Repository files navigation

AWS serverless lambda Image Model Deployment

This project allows you to deploy a Tflite image model to AWS Lambda using Serverless Framework (Pytorch version is coming soon)

Installation steps

  1. Install awscli from here and Serverless framework from below command
npm install -g serverless
  1. Clone the Repo and install the requirements
git clone https://github.com/saadhaxxan/AWS-Lambda-Model-Deployment.git
cd AWS-Lambda-Model-Deployment
npm install
pip install -r requirements.txt
  1. Configure AWS CLI and serverless.yml file with your credentials (provided by AWS)
aws configure
serverless config credentials --provider aws --key youraccesskey --secret yoursecretkey
  1. Replace profile in serverless.yml with your profile and edit the code in src/handler.py file if you need any logic change

  2. Deploy the app

serverless deploy

Author

You can get in touch with me on my LinkedIn Profile:

Saad Hassan

LinkedIn Link

You can also follow my GitHub Profile to stay updated about my latest projects: GitHub Follow

If you liked the repo then kindly support it by giving it a star ⭐!

Contributions Welcome

forthebadge

If you find any bug in the code or have any improvements in mind then feel free to generate a pull request.