This project allows you to deploy a Tflite image model to AWS Lambda using Serverless Framework (Pytorch version is coming soon)
- Install awscli from here and Serverless framework from below command
npm install -g serverless
- 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
- Configure AWS CLI and serverless.yml file with your credentials (provided by AWS)
aws configure
serverless config credentials --provider aws --key youraccesskey --secret yoursecretkey
-
Replace profile in serverless.yml with your profile and edit the code in src/handler.py file if you need any logic change
-
Deploy the app
serverless deploy
You can get in touch with me on my LinkedIn Profile:
You can also follow my GitHub Profile to stay updated about my latest projects:
If you liked the repo then kindly support it by giving it a star ⭐!
If you find any bug in the code or have any improvements in mind then feel free to generate a pull request.