-
Notifications
You must be signed in to change notification settings - Fork 167
/
serverless.yml
80 lines (75 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
78
79
80
service: serverless-http-test
provider:
name: aws
runtime: ${env:RUNTIME}
plugins:
- serverless-plugin-custom-binary
- serverless-plugin-include-dependencies
- serverless-offline
custom:
apiGateway:
binaryMediaTypes:
- image/png
package:
excludeDevDependencies: false
patterns:
- 'test/integration/**'
- '!test.js'
- '!run.sh'
- 'test/integration/image.png'
functions:
compare:
handler: test/integration/compare.handler
events:
- http: ANY /compare
echo:
handler: test/integration/echo.handler
events:
- http: ANY /echo
- http:
method: ANY
path: /echo/async
async: true
- http:
method: ANY
path: /echo/async/{any+}
async: true
- http:
method: ANY
path: /echo/sync
integration: 'lambda'
- http:
method: ANY
path: /echo/sync/{any+}
integration: 'lambda'
timer:
handler: test/integration/timer.handler
events:
- http: ANY /timer
express:
handler: test/integration/express.handler
events:
- http: ANY /express
- http: ANY /express/{any+}
koa:
handler: test/integration/koa.handler
events:
- http: ANY /koa
cookies:
handler: test/integration/cookies.handler
events:
- http: ANY /cookies
binary:
handler: test/integration/binary.handler
events:
- http:
path: /binary
method: ANY
pino:
handler: test/integration/pino.handler
events:
- http: ANY /pino
root:
handler: test/integration/root.handler
events:
- http: ANY /