Created
August 7, 2020 23:53
-
-
Save pchinjr/6561412f3368c8c1562adf2c3f87d78d to your computer and use it in GitHub Desktop.
Serverless Architect Hello World - illustrates an AWS Lambda Function in Architect for an HTTP GET Request
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
// /project/path/src/http/get-index/index.js | |
exports.handler = async function http(request) { | |
return { | |
headers: {'content-type': 'text/html; charset=utf-8;'}, | |
body: '<h1>Hello World! 🎉</h1>' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment