-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
40 lines (35 loc) · 768 Bytes
/
Copy pathserverless.yml
File metadata and controls
40 lines (35 loc) · 768 Bytes
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: ci-cd-node-ts
custom:
secrets: ${file(${opt:stage, 'local'}.json)}
webpack:
webpackConfig: ./webpack.config.js
includeModules: true
packager: 'npm'
serverless-offline:
useChildProcesses: true
provider:
name: aws
runtime: nodejs12.x
stage: ${opt:stage, 'develop'}
region: ap-south-1
timeout: 10 # Default Lambda timeout.
memorySize: 512 # Default Lambda Memory Size.
environment:
ENV: ${self:custom.secrets.NODE_ENV}
plugins:
- serverless-webpack
- serverless-offline
package:
exclude:
- "output-files/**"
- "test-files/**"
- "node_modules/**"
- "env/**"
- '*/**'
functions:
hello:
handler: handler.hello
events:
- http:
path: api/v1/hello
method: get