forked from brefphp/bref
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
59 lines (52 loc) · 1.34 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
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 /'
- httpApi: '*'
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)
url: true
events:
- http: 'ANY /psr7'
- httpApi: 'GET /psr7'
environment:
#BREF_LOOP_MAX: 100
console:
handler: demo/console.php
runtime: php-83-console
description: 'Bref console command demo'
timeout: 5