-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
71 lines (63 loc) · 1.71 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
64
65
66
67
68
69
70
71
service: ${self:custom.env.serviceName, 'unknown'}-service
variablesResolutionMode: 20210326
provider:
name: aws
runtime: nodejs14.x
memorySize: ${self:custom.env.memorySize}
stage: ${env:ENV, 'dev'}
region: ${opt:region, 'us-east-1'}
stackName: ${self:service}-${self:provider.stage}
profile: ${self:custom.profiles.${self:provider.stage}}
logRetentionInDays: ${self:custom.env.lambdaLogsRotation}
lambdaHashingVersion: ${self:custom.env.lambdaHashingVersion}
tracing:
apiGateway: true
lambda: true
apiGateway:
usagePlan:
quota:
limit: 5000
offset: 0
period: DAY
iam:
role: ${self:custom.env.role}
environment:
REGION: ${self:provider.region}
SERVICE_NAME: ${self:service}
STAGE: ${self:provider.stage}
SESSION_TABLE_NAME: ${self:custom.env.sessionTableName}
BOT_HOOK_PATH: ${env:HOOK, self:custom.env.botHook}
BOT_TOKEN: ${env:TOKEN}
custom:
profiles: ${file(./sls/profiles.yml)}
deploymentBuckets: ${file(./sls/deployment-buckets.yml)}
accountId: ${aws:accountId}
namePrefix: ${self:service}-${self:provider.stage}-${self:provider.region}
webpack:
packager: "pnpm"
keepOutputDirectory: true
env: ${file(./sls/env.yml)}
package:
individually: true
excludeDevDependencies: true
patterns:
- "!.git"
- "!.gitignore"
- "!.editorconfig"
- "!.eslintignore"
- "!.eslintrc.js"
- "!sls/**"
- "!README.md"
- "!serverless.yml"
- "!jest.config.js"
- "!tsconfig.json"
- "!webpack.config.json"
plugins:
- serverless-webpack
- serverless-deployment-bucket
- serverless-uuid
- serverless-offline
functions:
- ${file(./sls/functions.yml)}
resources:
- ${file(./sls/resources.yml)}