Skip to content

Instantly share code, notes, and snippets.

@karenirenecano
Created March 16, 2019 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karenirenecano/c7bc27ffad1994509f7f3bbea180c7b5 to your computer and use it in GitHub Desktop.
Save karenirenecano/c7bc27ffad1994509f7f3bbea180c7b5 to your computer and use it in GitHub Desktop.
serverless.yml
service: serviceName
provider:
name: aws
runtime: nodejs6.10
package:
exclude:
- '*'
- '**'
include:
- bref.php
- 'config/*'
- 'src/**'
- 'vendor/**'
- 'Model/*'
- 'Service/**'
- 'public/*'
- 'public/inc/**'
functions:
# By default we create one "main" function
main:
handler: handler.handle
timeout: 20 # Timeout in seconds, the default is 6 seconds
reservedConcurrency: 20 # Maximum concurrency (parallel executions), the default is 1000
# The function will match all HTTP URLs
events:
- http: 'ANY /'
- http: 'ANY {proxy+}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment