Spaces:
Running
Running
Clement Vachet
commited on
Commit
·
a35fd46
1
Parent(s):
ced969c
docs: use collapsed sections
Browse files
README.md
CHANGED
@@ -64,6 +64,8 @@ python
|
|
64 |
|
65 |
### 2.1. Pushing the docker container to AWS ECR
|
66 |
|
|
|
|
|
67 |
Steps:
|
68 |
- Create new ECR Repository via aws console
|
69 |
|
@@ -84,8 +86,12 @@ Example: ```object-detection-lambda```
|
|
84 |
|
85 |
[Link to AWS ECR Documention](https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html)
|
86 |
|
|
|
|
|
87 |
### 2.2. Creating and testing a Lambda function
|
88 |
|
|
|
|
|
89 |
<b>Steps</b>:
|
90 |
- Create function from container image
|
91 |
|
@@ -99,9 +105,12 @@ Advanced notes:
|
|
99 |
- Steps to update the Lambda function with latest container via aws cli:
|
100 |
> aws lambda update-function-code --function-name object-detection --image-uri <aws_account_id>.dkr.ecr.<aws_region>.amazonaws.com/object-detection-lambda:latest
|
101 |
|
|
|
102 |
|
103 |
### 2.3. Creating a REST API via API Gateway
|
104 |
|
|
|
|
|
105 |
<b>Steps</b>:
|
106 |
- Create a new ```Rest API``` (e.g. ```object-detection-api```)
|
107 |
- Add a new resource to the API (e.g. ```/detect```)
|
@@ -110,6 +119,8 @@ Advanced notes:
|
|
110 |
- Notes: currently using proxy integration option unchecked
|
111 |
- Deploy API with a specific stage (e.g. ```dev``` stage)
|
112 |
|
|
|
|
|
113 |
Example AWS API Endpoint:
|
114 |
```https://<api_id>.execute-api.<aws_region>.amazonaws.com/dev/detect```
|
115 |
|
|
|
64 |
|
65 |
### 2.1. Pushing the docker container to AWS ECR
|
66 |
|
67 |
+
<details>
|
68 |
+
|
69 |
Steps:
|
70 |
- Create new ECR Repository via aws console
|
71 |
|
|
|
86 |
|
87 |
[Link to AWS ECR Documention](https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html)
|
88 |
|
89 |
+
</details>
|
90 |
+
|
91 |
### 2.2. Creating and testing a Lambda function
|
92 |
|
93 |
+
<details>
|
94 |
+
|
95 |
<b>Steps</b>:
|
96 |
- Create function from container image
|
97 |
|
|
|
105 |
- Steps to update the Lambda function with latest container via aws cli:
|
106 |
> aws lambda update-function-code --function-name object-detection --image-uri <aws_account_id>.dkr.ecr.<aws_region>.amazonaws.com/object-detection-lambda:latest
|
107 |
|
108 |
+
</details>
|
109 |
|
110 |
### 2.3. Creating a REST API via API Gateway
|
111 |
|
112 |
+
<details>
|
113 |
+
|
114 |
<b>Steps</b>:
|
115 |
- Create a new ```Rest API``` (e.g. ```object-detection-api```)
|
116 |
- Add a new resource to the API (e.g. ```/detect```)
|
|
|
119 |
- Notes: currently using proxy integration option unchecked
|
120 |
- Deploy API with a specific stage (e.g. ```dev``` stage)
|
121 |
|
122 |
+
</details>
|
123 |
+
|
124 |
Example AWS API Endpoint:
|
125 |
```https://<api_id>.execute-api.<aws_region>.amazonaws.com/dev/detect```
|
126 |
|