Skip to content

Instantly share code, notes, and snippets.

@asishrs
Created February 1, 2020 06:08
Show Gist options
  • Save asishrs/9357c6de671b7aef341fa50969585f5b to your computer and use it in GitHub Desktop.
Save asishrs/9357c6de671b7aef341fa50969585f5b to your computer and use it in GitHub Desktop.
LambdaFunction:
Type: AWS::Lambda::Function
Properties:
Code:
ZipFile: |
exports.handler = async function(event, context) {
return { statusCode: 200, body: 'Hello World!' };
};
Description: API Lambda function
FunctionName: !Ref "lambdaFunctionName"
Handler: index.handler
MemorySize: 512
Role: !GetAtt LambdaIamRole.Arn
Runtime: nodejs12.x
Timeout: 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment