Skip to content

Instantly share code, notes, and snippets.

@furlanf
Created November 6, 2019 00:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furlanf/3d418c34ad0b6ca329524a85890df85c to your computer and use it in GitHub Desktop.
Save furlanf/3d418c34ad0b6ca329524a85890df85c to your computer and use it in GitHub Desktop.
Resources:
ProductsFunction:
Type: AWS::Serverless::Function
Properties:
CodeUri: products/
Handler: app.handler
Layers:
- !Ref CommonLayer
Runtime: nodejs8.10
Events:
Products:
Type: Api
Properties:
Path: /products
Method: get
CommonLayer:
Type: AWS::Serverless::LayerVersion
Properties:
LayerName: sam-app-common-layer
Description: Dependencies and middlewares for sam app
ContentUri: common-layer/
CompatibleRuntimes:
- nodejs8.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment