Spaces:
Sleeping
Sleeping
Clement Vachet
commited on
Commit
·
779d080
1
Parent(s):
b645f1c
Update README file
Browse files
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
|
7 |
|
8 |
bash
|
9 |
> python train.py
|
@@ -22,11 +21,14 @@ bash
|
|
22 |
|
23 |
### Testing locally:
|
24 |
|
25 |
-
|
26 |
|
27 |
bash
|
28 |
-
> curl -
|
29 |
|
30 |
-
|
31 |
|
32 |
-
|
|
|
|
|
|
|
|
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
|