A few example of AWS lambda functions written in GoLang.
Functions:
hello-world: Exactly what is says on the tin. Listening on a/hellopath.auth: An AWS API Gateway custom authorizer that sits in front ofhello-world. It expects an auth bearer ofhelloas a header and is on the base/path. The auth header should beAuthorization: bearer helloauth2andhello-world2: The same asauthabove except using auth contexts. Any name can be used as a bearer token, for exampleAuthorization: bearer Bob. The response will then returnHello, Bob!
I hope to add to these examples over time, if you have ideas please feel free to raise issues or pull requests.