-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathserverless.yml
More file actions
44 lines (40 loc) · 741 Bytes
/
serverless.yml
File metadata and controls
44 lines (40 loc) · 741 Bytes
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
service: SERVICE-NAME
# plugin to transpile ES6
plugins:
- serverless-webpack
- serverless-offline
custom:
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
packager: 'yarn'
package:
include:
- src/**
- node_modules/**
exclude:
- .git/**
- .env
- docker-compose.yml
- Dockerfile
- LICENSE
- README.md
- package.json
- package-lock.json
- tests/**
- yarn.lock
provider:
name: aws
runtime: nodejs8.10
stage: dev
region: eu-west-2
environment: ${file(env.yml):${self:provider.stage}}
functions:
ping:
handler: handler.ping
events:
- http:
path: ping
method: get
cors: true
# authorizer: