-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
63 lines (54 loc) · 1.27 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
60
61
62
63
service: serverless
# app: ccrteam92
# org: ccrteam92
frameworkVersion: '2'
provider:
name: aws
runtime: nodejs12.x
lambdaHashingVersion: 20201221
apiGateway:
shouldStartNameWithService: true
stage: dev
region: us-east-1
environment:
DB_URI: ${file(config.${opt:stage, self:provider.stage, 'dev'}.json):DB_URI}
TOKEN_SECRET: ${file(config.${opt:stage, self:provider.stage, 'dev'}.json):TOKEN_SECRET}
plugins:
- serverless-webpack
- serverless-offline
- serverless-mocha-plugin
- serverless-domain-manager
functions:
# debug:
# handler: src/debug.endpoint
# events:
# - httpApi:
# path: /debug
# method: get
app:
handler: src/index.handler
events:
- http:
path: /
method: ANY
- http:
path: /{any+}
method: ANY
custom:
webpack:
webpackConfig: 'webpack.config.js'
includeModules: false
packager: 'yarn'
excludeFiles: test/**/*.js
keepOutputDirectory: true
serverless-offline:
noPrependStageInUrl: true
customDomain:
domainName: api.trilhadavida.com.br
stage: dev
basePath: dev
certificateName: '*.trilhadavida.com.br'
createRoute53Record: true
endpointType: 'regional'
apiType: rest
autoDomain: false