Created
December 27, 2018 09:04
-
-
Save Mulperi/c0c39aeccec2caf7f3c305cc415dcc39 to your computer and use it in GitHub Desktop.
Minimal Lambda SAM template
This file contains 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
AWSTemplateFormatVersion: '2010-09-09' | |
Transform: 'AWS::Serverless-2016-10-31' | |
Description: 'My test serverless API' | |
Parameters: | |
BucketName: | |
Type: String | |
CodeKey: | |
Type: String | |
StackName: | |
Type: String | |
Resources: | |
NewsFunction: | |
Type: 'AWS::Serverless::Function' | |
Properties: | |
Runtime: nodejs6.10 | |
FunctionName: !Sub '${StackName}-testlambda' | |
Handler: lambda.handler | |
CodeUri: | |
Bucket: !Ref BucketName | |
Key: !Ref CodeKey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment