❯ GOOS=linux GOARCH=arm64 go build -tags lambda.norpc -o bootstrap main.go
❯ zip myFunction.zip bootstrap
adding: bootstrap (deflated 46%)
❯ aws lambda create-function --function-name myFunction \
--runtime provided.al2 --handler bootstrap \
--architectures arm64 \
--role arn:aws:iam::313370:role/whataburger-lambda \
--zip-file fileb://myFunction.zip
❯
These build args will produce arm64 binaries, will run faster, and will leverage the updated and AWS preferred runtime for golang. The billing model changes slightly - the current runtime does not get billed for invocation time, whereas the new runtime will, but it AWS claims it is not really much of a difference since it is so much faster now.
These build args will produce arm64 binaries, will run faster, and will leverage the updated and AWS preferred runtime for golang. The billing model changes slightly - the current runtime does not get billed for invocation time, whereas the new runtime will, but it AWS claims it is not really much of a difference since it is so much faster now.