-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
77 lines (74 loc) · 1.64 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
service: compare-userstats
package:
individually: true
exclude:
- lib/**
provider:
name: aws
runtime: nodejs6.10
stage: dev
region: us-west-2
credentials: ${file(credentials.yml):credentials}
memorySize: 128
timeout: 300
cfLogs: true # < sls v1.10
versionFunctions: false
functions:
userstat-browse:
handler: lib/userstat/browse.handler
package:
include: ['lib/userstat/browse/**']
events:
- http:
path: /userstats
method: GET
userstat-add:
handler: lib/userstat/add.handler
package:
include: ['lib/userstat/add/**']
events:
- http:
path: /userstats
method: POST
userstat-read:
handler: lib/userstat/read.handler
package:
include: ['lib/userstat/read/**']
events:
- http:
path: /userstats/{id+}
method: GET
userstat-edit:
handler: lib/userstat/edit.handler
package:
include: ['lib/userstat/edit/**']
events:
- http:
path: /userstats/{id+}
method: PUT
swagger:
handler: lib/swagger.handler
package:
include: ['lib/swagger/**']
events:
- http:
path: /userstats/swagger
method: GET
preflight-userstat-add:
handler: lib/preflight/add.handler
package:
include: ['lib/preflight/add/**']
events:
- http:
path: /userstats
method: OPTIONS
preflight-userstat-edit:
handler: lib/preflight/edit.handler
package:
include: ['lib/preflight/edit/**']
events:
- http:
path: /userstats/{id+}
method: OPTIONS
plugins:
- serverless-offline