-
Notifications
You must be signed in to change notification settings - Fork 24
/
serverless.yml
40 lines (36 loc) · 1.12 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
service: node-ddd
plugins:
- serverless-offline
- serverless-dotenv-plugin
provider:
name: aws
runtime: nodejs12.x
stage: ${self:custom.stage}
region: ${file(env.yml):${self:custom.stage}.AWS_REGION, 'ap-southeast-1'}
environment:
NODE_PATH: ${file(env.yml):${self:custom.stage}.NODE_PATH, './:/opt/node_modules'}
NODE_ENV: ${file(env.yml):${self:custom.stage}.NODE_ENV, 'development'}
tracing:
apiGateway: false
lambda: false # Optional, can be true (true equals 'Active'), 'Active' or 'PassThrough'
versionFunctions: false
memorySize: 1024
custom:
stage: ${opt:stage, 'development'}
env: ${file(env.yml):${self:custom.stage}}
layerArn: ${self:custom.env.LAYER_ARN}
serverless-offline:
httpPort: ${file(env.yml):${self:custom.stage}.SLS_OFFLINE_HTTP_PORT, '3000'}
lambdaPort: ${file(env.yml):${self:custom.stage}.SLS_OFFLINE_LAMBDA_PORT, '3002'}
# iamRoleStatements:
# - Effect: 'Allow'
# Action:
# - 'xray:PutTraceSegments'
# - 'xray:PutTelemetryRecords'
# Resource:
# - '*'
# functions:
# functionName:
# handler: handlerPath
# resources:
# Resources: