-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserverless.yml
More file actions
37 lines (32 loc) · 915 Bytes
/
serverless.yml
File metadata and controls
37 lines (32 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
frameworkVersion: ">=1.2.1"
service: gl-node-lite-object-detection
provider:
name: aws
runtime: python3.6
stage: dev
region: ca-central-1
timeout: 30
environment:
TF_AWS_S3_MODEL_PATH: [REPLACE_ME: path/to/model/file/inside/bucket/]eon_0.pb
TF_AWS_MODEL_PROTOBUF_FILE_NAME: eon_0.pb
TF_AWS_S3_MODEL_BUCKET_NAME: [REPLACE_ME: GRASSLAND_MODEL_BUCKET]
iamRoleStatements:
- Effect: "Allow"
Action:
- "s3:GetObject"
Resource:
- "arn:aws:s3:::[REPLACE_ME: GRASSLAND_MODEL_BUCKET]"
- "arn:aws:s3:::[REPLACE_ME: GRASSLAND_MODEL_BUCKET]/*"
- "arn:aws:s3:::[REPLACE_ME: GRASSLAND_FRAME_S3_BUCKET]"
- "arn:aws:s3:::[REPLACE_ME: GRASSLAND_FRAME_S3_BUCKET]/*"
functions:
predict:
handler: handler.predict
memorySize: 3008
events:
- http:
path: /predict
method: get
package:
exclude:
- README.md