-
Notifications
You must be signed in to change notification settings - Fork 1
/
serverless.yml
40 lines (36 loc) · 975 Bytes
/
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
service: acseo-the-office-api
provider:
name: aws
region: eu-west-3 # Paris
runtime: provided
environment:
# Symfony environment variables
APP_ENV: prod
plugins:
- ./vendor/bref/bref
package:
exclude:
- node_modules/**
- tests/**
functions:
website:
handler: public/index.php
timeout: 28 # in seconds (API Gateway has a timeout of 29 seconds)
layers:
- ${bref:layer.php-73-fpm}
events:
- http: 'ANY /'
- http: 'ANY /{proxy+}'
# vpc:
# securityGroupIds:
# - sg-7f6a0510
# subnetIds:
# - subnet-95d2effc
# - subnet-3daffb46
# - subnet-2740d96a
console:
handler: bin/console
timeout: 120 # in seconds
layers:
- ${bref:layer.php-73} # PHP
- ${bref:layer.console} # The "console" layer