-
Notifications
You must be signed in to change notification settings - Fork 3
/
serverless.aws.yml
63 lines (58 loc) · 1.22 KB
/
serverless.aws.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: satheler-survey
provider:
name: aws
region: ${opt:region, 'sa-east-1'}
stage: ${opt:stage, 'develop'}
runtime: nodejs14.x
stackName: ${self:provider.stage}-${self:service}
apiName: ${self:provider.stage}-${self:service}
timeout: 10
memorySize: 256
versionFunctions: false
tracing:
apiGateway: true
lambda: true
environment:
NODE_ENV: development
PORT: 3333
HOST: localhost
APP_KEY: TVTj8OCKxhHhHWeyZHkVhK1TPL7ghIK9
functions:
app:
handler: lambda.handle
layers:
- { Ref: NodeModulesLambdaLayer }
events:
- http:
cors: true
path: '/'
method: any
- http:
cors: true
path: '{proxy+}'
method: any
package:
patterns:
- 'build/**'
- '!node_modules/**'
- '!.github/**'
- '!.vscode/**'
- '!app/**'
- '!commands/**'
- '!config/**'
- '!contracts/**'
- '!database/**'
- '!providers/**'
- '!scripts/**'
- '!start/**'
- '!tests/**'
- '!tmp/**'
- '!./*'
layers:
NodeModules:
name: ${self:provider.apiName}-layer
path: tmp/layers
description: "node_modules dependencies"
plugins:
- serverless-plugin-typescript
- serverless-offline