Golang Microservices – How to Make a Golang Lambda Function



Golang Microservices – How to Make a Golang Lambda Function

Golang Microservices - How to Make a Golang Lambda Function

Blog:
https://www.valhallaresearch.net/golang-lambda-function-microservices/

Build one-liner (Windows – Requires 7Zip):
set GOOS=linux&& set GOARCH=amd64&& go build -o ./tmp/main main && 7z a ./tmp/main.zip ./tmp/main && aws lambda update-function-code –function-name TestFunctionForBlog –region us-east-2 –zip-file fileb://./tmp/main.zip

Build one-liner (MacOS and Maybe Linux?):
env GOOS=linux GOARCH=amd64 go build -o ./tmp/main main && zip -j ./tmp/main.zip ./tmp/main && aws lambda update-function-code –function-name TestFunctionForBlog –region us-east-2 –zip-file fileb://.//tmp/main.zip

Lambda functions and Golang go hand in hand. They really rock. In this video, we’re going to set up a dead simple Golang Lambda function, from code to (dumb) CI/CD and more!

Twitter:
https://twitter.com/valhalla_dev

Blog:
valhallaresearch.net

#software #golang #aws