-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.yml
76 lines (67 loc) · 1.55 KB
/
functions.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
starterFunction:
handler: functions/starter-function/index.handler
role: ServerlessTemplateRole
events:
- http:
method: GET
path: /hello-world
cors: true
createToDo:
handler: functions/todo/create/index.handler
role: ServerlessTemplateSQSRole
events:
- http:
method: POST
path: /todos
getTodo:
handler: functions/todo/getTodos/index.handler
role: ServerlessTemplateSQSRole
events:
- http:
method: GET
path: /todos
createUser:
handler: functions/user/createUser/index.handler
role: ServerlessTemplateSQSRole
events:
- http:
method: POST
path: /user
getUser:
handler: functions/user/getUser/index.handler
role: ServerlessTemplateSQSRole
events:
- http:
method: GET
path: /user
dailyCron:
handler: functions/daily-cron/index.handler
role: ServerlessTemplateRole
events:
- schedule:
name: daily-cron-12am
description: A CRON that runs every day at 12am
rate: rate(24 hours)
deleteTodo:
handler: functions/todo/removeTodo/index.handler
role: ServerlessTemplateSQSRole
events:
- http:
method: DELETE
path: /todo
updateTodo:
handler: functions/todo/updateTodo/index.handler
role: ServerlessTemplateSQSRole
events:
- http:
method: PATCH
path: /todo
# todoConsumer:
# handler: functions/todo/consumer/index.handler
# role: ServerlessTemplateSQSRole
# events:
# - sqs:
# arn:
# Fn::GetAtt:
# - todoQueue
# - Arn