Skip to content

Instantly share code, notes, and snippets.

@pchinjr
Created August 7, 2020 23:53
Show Gist options
  • Save pchinjr/6561412f3368c8c1562adf2c3f87d78d to your computer and use it in GitHub Desktop.
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
// /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