Golang Microservices - How to Make a Golang Lambda Function

Описание к видео Golang Microservices - How to Make a Golang Lambda Function

Blog:
https://www.valhallaresearch.net/gola...

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:
  / valhalla_dev  

Blog:
valhallaresearch.net
--
#software #golang #aws

Комментарии

Информация по комментариям в разработке