Created
November 6, 2019 00:10
-
-
Save furlanf/3d418c34ad0b6ca329524a85890df85c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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