-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.yml
39 lines (35 loc) · 1.28 KB
/
template.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
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: A Layer that packages the newest versions of aws-sdk and aws-xray-sdk
Metadata:
AWS::ServerlessRepo::Application:
Name: lambda-nodejs-custom-sdks-layer
Description: A Lambda Layer that packages the newest versions of aws-sdk and aws-xray-sdk for nodejs8.10 functions
Author: Solve HQ
SpdxLicenseId: MIT
LicenseUrl: LICENSE
ReadmeUrl: README.md
Labels: ["lambda", "layer", "sdks", "nodejs"]
HomePageUrl: https://github.com/solve-hq/lambda-custom-sdks-layer
SemanticVersion: 2.550.0
SourceCodeUrl: https://github.com/solve-hq/lambda-custom-sdks-layer
Resources:
nodejs:
Type: AWS::Serverless::Function
Properties:
CodeUri: ./nodejs
Handler: index.handler
Runtime: nodejs8.10
NodeJSLayer:
Type: AWS::Serverless::LayerVersion
Properties:
Description: A Layer that packages the newest versions of aws-sdk and aws-xray-sdk
ContentUri: ./.aws-sam/build
CompatibleRuntimes:
- nodejs8.10
LicenseInfo: "Available under the MIT-0 license."
RetentionPolicy: Retain
Outputs:
LayerVersionArn:
Description: "The Layer Version ARN to use when setting the layers of a function"
Value: !Ref NodeJSLayer