-
Notifications
You must be signed in to change notification settings - Fork 5.7k
/
serverless.yml
45 lines (40 loc) · 912 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: service
provider:
name: aws
runtime: nodejs16.x
lambdaHashingVersion: 20201221
layers:
testLayer:
name: default_test_layer
path: testLayer
description: 'test layer'
TestLayerWithCapitals:
name: capitalized_test_layer
path: testLayer
testLayerWithNoName:
path: testLayer
package:
patterns:
- '!extra_layers/**'
functions:
layerFunc:
handler: index.handler
layers:
- { Ref: TestLayerLambdaLayer }
noLayerFunc:
handler: index.handler
layerFuncWithConfig:
handler: index.handler
memorySize: 128
capitalLayerFunc:
handler: index.handler
layers:
- { Ref: TestLayerWithCapitalsLambdaLayer }
noNameLayerFunc:
handler: index.handler
layers:
- { Ref: TestLayerWithNoNameLambdaLayer }
arnLayerFunc:
handler: index.handler
layers:
- arn:aws:lambda:us-east-2:123456789012:layer:my-layer:1