-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
36 lines (33 loc) · 859 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
service: LambdaHelloWorld
provider:
name: aws
runtime: nodejs6.10
memorySize: 512 # optional, in MB, default is 1024
timeout: 10 # optional, in seconds, default is 6
versionFunctions: false # optional, default is true
stage: LIVE
region: eu-west-1
package:
exclude:
- '*'
- '**'
include:
- bref.php
- 'src/**'
- 'vendor/**'
- composer.json # Symfony uses it to figure out the root directory
- 'bin/**'
- 'config/**'
- 'var/cache/prod/**' # We want to deploy the production caches
functions:
# By default we create one "main" function
main:
handler: handler.handle
timeout: 20 # Timeout in seconds, the default is 6 seconds
# The function will match all HTTP URLs
events:
- http: 'ANY /'
- http: 'ANY {proxy+}'
environment:
APP_ENV: 'prod'
APP_DEBUG: '0'