forked from brefphp/bref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
71 lines (63 loc) · 1.6 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
service: bref-demo
provider:
name: aws
runtime: provided.al2
region: us-east-2
logs:
restApi: true
apiGateway:
binaryMediaTypes:
- '*/*'
plugins:
- ./index.js
package:
exclude:
- '**'
include:
- 'demo/**'
- 'src/**'
- 'vendor/**'
functions:
function:
handler: demo/function.php
description: 'Bref CLI demo'
layers:
- ${bref:layer.php-74}
environment:
BREF_LOOP_MAX: 100
http:
handler: demo/http.php
description: 'Bref HTTP demo'
timeout: 5 # in seconds (API Gateway has a timeout of 29 seconds)
memory: 1024
layers:
- ${bref:layer.php-74-fpm}
events:
- http: 'ANY /'
psr7:
handler: demo/psr7.php
description: 'Bref HTTP demo with a PSR-7 handler'
timeout: 5 # in seconds (API Gateway has a timeout of 29 seconds)
memory: 1024
layers:
- ${bref:layer.php-74}
events:
- http: 'ANY /psr7'
environment:
BREF_LOOP_MAX: 100
http-api:
handler: demo/http.php
description: 'Bref HTTP demo'
timeout: 5 # in seconds (API Gateway has a timeout of 29 seconds)
memory: 1024
layers:
- ${bref:layer.php-74-fpm}
events:
- httpApi: '*'
console:
handler: demo/console.php
description: 'Bref console command demo'
timeout: 900
layers:
- ${bref:layer.php-74}
- ${bref:layer.console}