Writing Go-based function handler for AWS Lambda
Deploying Go-Based application on AWS Lambda. Introduction Function handlers are a piece of code in an application that is invoked when an event is called. These events are triggers in AWS Lambda which is very well integrated with other AWS services. A trigger can be an API Gateway, an object creation in S3, or an SQS. Tip: If you are new to GoLang, Please visit the below link for a better understanding of Go. A video guide is also attached at the end of the blog The requirement for writing the Go program For executing any GO program, the following steps must be followed. An installation of Go. For installation instructions, see Installing Go . An IDE to edit your code. ( I’ll be using VSCode ) A command terminal. Writing the Lambda function handler code (you can find the code and build file on my Github ) Create a folder for our project mkdir go-lambda cd go-lambda 2. Create a module file for dependencies. Run the go ...