-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yaml
49 lines (44 loc) · 1.42 KB
/
serverless.yaml
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
service: ${file(./.env/env.${self:provider.env}.json):NAME}
provider:
name: aws
runtime: nodejs10.x
stage: ${file(./.env/env.${self:provider.env}.json):NODE_ENV}
env: ${env:SLS_ENV, 'test'}
region: us-east-1
timeout: 29
tracing:
lambda: true
environment:
NODE_ENV: ${file(./.env/env.${self:provider.env}.json):NODE_ENV}
SWAGGER: ${file(./.env/env.${self:provider.env}.json):SWAGGER}
PROTOCOL: ${file(./.env/env.${self:provider.env}.json):PROTOCOL}
MONGO: ${file(./.env/env.${self:provider.env}.json):MONGO}
REPLICA: ${file(./.env/env.${self:provider.env}.json):REPLICA}
DOMAIN: ${file(./.env/env.${self:provider.env}.json):DOMAIN}
PRODUCT_SLUG: ${file(./.env/env.${self:provider.env}.json):PRODUCT_SLUG}
IMPLEMENTER: ${file(./.env/env.${self:provider.env}.json):IMPLEMENTER}
CIVIC: ${file(./.env/env.${self:provider.env}.json):CIVIC}
CIVIC_API: ${file(./.env/env.${self:provider.env}.json):CIVIC_API}
package:
exclude:
- src/**
plugins:
- serverless-domain-manager
- serverless-apigw-binary
custom:
customDomain:
domainName: ${file(./.env/env.${self:provider.env}.json):SWAGGER}
basePath: ''
stage: ${self:provider.stage}
createRoute53Record: true
apigwBinary:
types:
- 'multipart/form-data'
- 'image/jpeg'
- 'image/png'
functions:
app:
handler: dist/bin/slsapp.handler
events:
- http: ANY /
- http: 'ANY {proxy+}'