-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
45 lines (39 loc) · 890 Bytes
/
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
service: manage-lambda-layers
plugins:
- serverless-webpack
- serverless-offline
package:
individually: true
excludeDevDependencies: true
include:
- node_modules/**
- src/**
custom:
serverless-offline:
port: 4000
webpack:
includeModules:
forceExclude:
- moment
layers:
moment:
path: layers/moment
name: ${self:service}-${self:provider.stage}-moment
description: moment npm module
compatibleRuntimes:
- nodejs14.x
provider:
name: aws
region: ${opt:region, 'us-east-1'}
runtime: nodejs12.x
stage: ${opt:stage, 'dev'}
versionFunctions: false
functions:
getCurrentDateTime:
handler: src/functions/getCurrentDateTime.handler
name: ${self:service}-${self:provider.stage}-get-current-date-time
events:
- http:
path: getCurrentDateTime
method: get
cors: true