1.0.0 • Published 5 years ago
@cfn-modules/lambda-layer v1.0.0
cfn-modules: AWS Lambda layer
AWS Lambda layer for the use with Lambda function.
Install
Install Node.js and npm first!
npm i @cfn-modules/lambda-layer
Usage
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'cfn-modules example'
Resources:
Layer:
Type: 'AWS::CloudFormation::Stack'
Properties:
Parameters:
ContentBucket: 'BucketName' # required
ContentKey: 'layer.zip' # required
ContentVersion: '' # optional
CompatibleRuntimes: '' # optional
TemplateURL: './node_modules/@cfn-modules/lambda-layer/module.yml'
Function:
Type: 'AWS::CloudFormation::Stack'
Properties:
Parameters:
LayerModule: !GetAtt 'Layer.Outputs.StackName' # optional
...
TemplateURL: './node_modules/@cfn-modules/lambda-function/module.yml'
Parameters
1.0.0
5 years ago