-
Notifications
You must be signed in to change notification settings - Fork 23
/
template.yaml
51 lines (46 loc) · 1.62 KB
/
template.yaml
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
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: SAM Template for Layers-Demo Application
Globals:
Function:
Timeout: 60
Resources:
DeserializeDemoFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: LayersApp-DeserializeDemo
Description: Layers App Deserialize Demo Function
Role: arn:aws:iam::093833860903:role/MyLambdaRole
CodeUri: deserialize-demo/
Handler: main.lambda_handler
Runtime: python3.7
Layers:
- !Ref MyLambdaLayer
ObjectPathDataDemoFunction:
Type: AWS::Serverless::Function
Properties:
FunctionName: LayersApp-ObjectPathDataDemo
Description: Layers App Deserialize Demo Function
Role: arn:aws:iam::093833860903:role/MyLambdaRole
CodeUri: objectpath-data-demo/
Handler: main.lambda_handler
Runtime: python3.7
Layers:
- !Ref MyLambdaLayer
MyLambdaLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: MyLambdaLayer
Description: My Lambda Layer with Deserialize Function, Objectpath Module & AWS Regions JSON
ContentUri: lambda-layers/my-lambda-layer.zip
CompatibleRuntimes:
- python3.6
- python3.7
LicenseInfo: MIT
RetentionPolicy: Retain
Outputs:
MyLambdaLayerARN:
Value: !Ref MyLambdaLayer
Description: MyLambdaLayer ARN
Export:
Name: my-lambda-layer-arn