Created
February 1, 2020 06:08
-
-
Save asishrs/9357c6de671b7aef341fa50969585f5b to your computer and use it in GitHub Desktop.
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
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