1.0.0 • Published 5 years ago

@cfn-modules/lambda-layer v1.0.0

Weekly downloads
1
License
Apache-2.0
Repository
github
Last release
5 years ago

Build Status NPM version

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