Skip to content

Instantly share code, notes, and snippets.

@georgmao
Last active April 3, 2020 19:06
Show Gist options
  • Save georgmao/8734f9f88e87fa8f0470bd26db23d492 to your computer and use it in GitHub Desktop.
Save georgmao/8734f9f88e87fa8f0470bd26db23d492 to your computer and use it in GitHub Desktop.
layers sam template
myFunction:
Type: AWS::Serverless::Function
Properties:
Handler: test.handler
Runtime: nodejs12.x
Timeout: 3
Layers:
- Ref: MyLayer
MyLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: MyLayer
Description: Layer description
ContentUri: 'mylayer/'
CompatibleRuntimes:
- nodejs12.x
LicenseInfo: 'Available under the MIT-0 license.'
RetentionPolicy: Retain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment