Clement Vachet commited on
Commit
779d080
·
1 Parent(s): b645f1c

Update README file

Browse files
Files changed (1) hide show
  1. README.md +8 -6
README.md CHANGED
@@ -1,9 +1,8 @@
1
  # IRIS classification task with AWS Lambda
2
 
3
  ## Workflow: use of AWS lambda function for deployment
4
- Steps to Deploy
5
 
6
- ### Training the Model:
7
 
8
  bash
9
  > python train.py
@@ -22,11 +21,14 @@ bash
22
 
23
  ### Testing locally:
24
 
25
- Use a tool like curl to send a test request:
26
 
27
  bash
28
- > curl -XPOST "http://localhost:8080/2015-03-31/functions/function/invocations" -d '{"body": "{\"features\": [[6.5, 3.0, 5.8, 2.2], [6.1, 2.8, 4.7, 1.2]]}"}'
29
 
30
- Deploy to AWS Lambda: Package the code and dependencies, then upload to AWS Lambda via the AWS Management Console or AWS CLI.
31
 
32
- This setup provides a complete pipeline from training the model to deploying it on AWS Lambda.
 
 
 
 
1
  # IRIS classification task with AWS Lambda
2
 
3
  ## Workflow: use of AWS lambda function for deployment
 
4
 
5
+ ### Training the model:
6
 
7
  bash
8
  > python train.py
 
21
 
22
  ### Testing locally:
23
 
24
+ curl example with a test request:
25
 
26
  bash
27
+ > curl -X POST "http://localhost:8080/2015-03-31/functions/function/invocations" -d '{"body": "{\"features\": [[6.5, 3.0, 5.8, 2.2], [6.1, 2.8, 4.7, 1.2]]}"}'
28
 
29
+ ### Deployment to AWS
30
 
31
+ Steps:
32
+ - Pushing the docker container to AWS ECR
33
+ - Creating and testing a Lambda function
34
+ - Creating an API via API Gateway