-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless.yml
52 lines (48 loc) · 1.24 KB
/
serverless.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
service: plugin
provider:
name: tencent
runtime: Python3.6
credentials: ~/credentials
region: ap-singapore
plugins:
- serverless-tencent-scf
functions:
user_action_search:
handler: user_action.student_get
description: Tencent Serverless Cloud Function
events:
- apigw:
name: user_action_apigw
parameters:
stageName: release
serviceId:
httpMethod: GET
path: /user/student/
enableCORS: true
serviceTimeout: 10
user_action_add:
handler: user_action.teacher_put
description: Tencent Serverless Cloud Function
events:
- apigw:
name: user_action.teacher
parameters:
stageName: release
serviceId:
httpMethod: PUT
path: /user/teacher/
enableCORS: true
serviceTimeout: 10
product_action:
handler: product_action.main_handler
description: Tencent Serverless Cloud Function
events:
- apigw:
name: product_action_apigw
parameters:
stageName: release
serviceId:
httpMethod: ANY
path: /product/
enableCORS: true
serviceTimeout: 10