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