-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
52 lines (46 loc) · 1.06 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
service: customer-api
plugins:
- serverless-prune-plugin
- serverless-offline
provider:
name: aws
runtime: nodejs18.x
region: us-east-1
profile: lambda-${sls:stage}
stage: ${opt:stage, 'staging'}
environment: ${file(./env.yml)}
deploymentPrefix: ${sls:stage}
deploymentBucket:
name: br.com.customer.serverless.deploys
apiGateway:
apiKeys: customer-api-${sls:stage}
tracing:
apiGateway: true
lambda: true
custom:
prune:
automatic: true
number: 3
serverless-offline:
noPrependStageInUrl: true
useWorkerThreads: true
apiKey: ZwQI78EwIO86H8EZhJC7z4qww1cLolB06rIvIMPu
prefix: api
functions:
- ${file(./infra/lambda/list-customers.yml)}
- ${file(./infra/lambda/create-customer.yml)}
- ${file(./infra/lambda/nearby-customers.yml)}
resources:
- ${file(./infra/api-gateway/auth-response.yml)}
package:
individually: true
patterns:
- '!package-lock.json'
- '!.editorconfig'
- '!.vscode/**'
- '!.github/**'
- '!.git/**'
- '!.nvmrc'
- '!.npmrc'
- '!README.md'
- '!env.yml'