forked from aws-samples/aws-lambda-layer-awscli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sam-layer.yaml
43 lines (38 loc) · 1.14 KB
/
sam-layer.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
AWSTemplateFormatVersion: '2010-09-09'
Metadata:
AWS::ServerlessRepo::Application:
Name: lambda-layer-awscli
Description: "Lambda Layer for AWS CLI"
Author: Pahud Hsieh
SpdxLicenseId: Apache-2.0
LicenseUrl: LICENSE
ReadmeUrl: README.md
Labels: ['layer','lambda','awscli','cli', 'aws', 'bash']
HomePageUrl: https://github.com/aws-samples/aws-lambda-layer-awscli
SemanticVersion: 1.0.0
SourceCodeUrl: https://github.com/aws-samples/aws-lambda-layer-awscli
Transform: AWS::Serverless-2016-10-31
Description: AWS Lambda Layer for awscli
Parameters:
RetentionPolicy:
Type: String
Default: Retain
AllowedValues:
- Retain
- Delete
Resources:
LambdaLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: !Sub "${AWS::StackName}"
ContentUri: ./layer.zip
CompatibleRuntimes:
- provided
LicenseInfo: 'Available under the MIT-0 license.'
RetentionPolicy: !Ref RetentionPolicy
Outputs:
LayerVersionArn:
Description: ARN for the published Layer version
Value: !Ref LambdaLayer
Export:
Name: !Sub 'LayerVersionArn-${AWS::StackName}'