Skip to content

Instantly share code, notes, and snippets.

@Mulperi
Created December 27, 2018 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mulperi/c0c39aeccec2caf7f3c305cc415dcc39 to your computer and use it in GitHub Desktop.
Save Mulperi/c0c39aeccec2caf7f3c305cc415dcc39 to your computer and use it in GitHub Desktop.
Minimal Lambda SAM template
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