This repository was archived by the owner on Nov 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayer.yaml
More file actions
92 lines (69 loc) · 1.95 KB
/
layer.yaml
File metadata and controls
92 lines (69 loc) · 1.95 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
---
AWSTemplateFormatVersion: 2010-09-09
Description: 'git LFS: Lambda layer'
Metadata:
AWS::CloudFormation::Interface:
ParameterLabels:
DeploymentBucket:
default: Bucket
DeploymentObjectKey:
default: Object key
DeploymentObjectVersion:
default: Object version ID
ParameterGroups:
-
Label: Deployment
Parameters:
- DeploymentBucket
- DeploymentObjectKey
- DeploymentObjectVersion
-
Label: Lambda
Parameters:
- PythonVersions
Parameters:
DeploymentBucket:
Description: Name of the S3 bucket that contains the deployment package object.
Type: String
DeploymentObjectKey:
Description: Key of the deployment package object.
Type: String
DeploymentObjectVersion:
Description: Version ID of the deployment package object, if any.
Type: String
Default: ''
PythonVersions:
Description: Python versions supported by the deployment package.
Type: CommaDelimitedList
Default: '3.8'
Conditions:
DeploymentObjectVersionSpecified:
Fn::Not:
-
Fn::Equals:
-
Ref: DeploymentObjectVersion
- ''
Resources:
LayerVersion:
Type: AWS::Lambda::LayerVersion
Properties:
CompatibleRuntimes:
Ref: PythonVersions
Content:
S3Bucket:
Ref: DeploymentBucket
S3Key:
Ref: DeploymentObjectKey
S3ObjectVersion:
Fn::If:
- DeploymentObjectVersionSpecified
-
Ref: DeploymentObjectVersion
-
Ref: AWS::NoValue
Outputs:
LatestVersionArn:
Description: ARN of the Lambda layer's latest version.
Value:
Ref: LayerVersion