forked from brefphp/bref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
65 lines (57 loc) · 1.52 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
service: bref-demo
provider:
name: aws
region: us-east-2
logRetentionInDays: 7
versionFunctions: false
apiGateway:
binaryMediaTypes:
- '*/*'
plugins:
- ./index.js
package:
patterns:
- '!**'
- 'demo/**'
- 'src/**'
- 'vendor/**'
- '!vendor/squizlabs/**'
- '!vendor/slevomat/**'
- '!vendor/nikic/**'
functions:
function:
handler: demo/function.php
runtime: php-83
description: 'Bref function demo'
environment:
BREF_LOOP_MAX: 100
http:
handler: demo/http.php
runtime: php-83-fpm
architecture: arm64
description: 'Bref HTTP demo'
timeout: 5 # in seconds (API Gateway has a timeout of 29 seconds)
events:
- http: 'ANY /'
psr7:
handler: demo/psr7.php
runtime: php-83
description: 'Bref HTTP demo with a PSR-7 handler'
timeout: 5 # in seconds (API Gateway has a timeout of 29 seconds)
events:
- http: 'ANY /psr7'
- httpApi: 'GET /psr7'
environment:
BREF_LOOP_MAX: 100
http-api:
handler: demo/http.php
runtime: php-83-fpm
description: 'Bref HTTP demo'
timeout: 5 # in seconds (API Gateway has a timeout of 29 seconds)
events:
- httpApi: '*'
console:
handler: demo/console.php
runtime: php-83-console
description: 'Bref console command demo'
timeout: 5