Skip to content

Instantly share code, notes, and snippets.

@allenmichael
Created February 18, 2019 23:14
Show Gist options
  • Select an option

  • Save allenmichael/ff45cba4087188d5938bc889614c42b6 to your computer and use it in GitHub Desktop.

Select an option

Save allenmichael/ff45cba4087188d5938bc889614c42b6 to your computer and use it in GitHub Desktop.
Local Library Lambda Layer Template
AWSTemplateFormatVersion: "2010-09-09"
Transform: AWS::Serverless-2016-10-31
Description: Local Library Lambda Layer
Resources:
PetuniaDep:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: petunia-lib
Description: A bundled local library
ContentUri: ./out.zip
CompatibleRuntimes:
- nodejs6.10
- nodejs8.10
LicenseInfo: "MIT"
RetentionPolicy: Retain
Outputs:
PetuniaLayer:
Description: "A basic Lambda Layer with local library."
Value: !Ref PetuniaDep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment