-
Notifications
You must be signed in to change notification settings - Fork 547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question and Concerns Around build-lambda-zip Utility - Seems to be unnecessary #493
Comments
It's to help developers on Windows who aren't also using something like Docker or WSL. Those using using Linux or macOS don't need it.
Yeah |
Appreciate the response, but I've not needed it at all and all I use is Windows haha. After compiling my lambda with the exact same command above: I just right click the compiled binary and use the builtin Windows "Send to Compressed" available in the standard Windows GUI, and that's it. Then upload the zip to the lambda console. Using the |
Nice! It's been a long time since #13, so something must have changed. I'll forward this on to the service team to confirm. It'd be nice to be able to simplify the documentation and deprecate the |
With any non-default build flags, there may be some tradeoff to understand and incorporate into any documentation. Dropping the debug symbols does seem risk free though. |
I've referenced the |
Hi there,
I'm curious to know why AWS is recommending this build tool when creating deployment packages for Lambdas written in Go.
https://github.com/aws/aws-lambda-go/blob/main/cmd/build-lambda-zip/main.go
The current readme shows that the bootstrap file it creates is specifically only designed to be used with the al.2 runtime, however the AWS docs state the al.2 runtime isn't available for use with Go at all.
https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html?icmpid=docs_lambda_help
Also, please add the necessary flags to the build command in the "build-lambda-zip" utility to remove the debug symbols from the binary, preventing the binary from being unnecessarily large.
GOOS=linux GOARCH=amd64 go build -ldflags=-w -o main main.go
zip my-deployment-package.zip main
The text was updated successfully, but these errors were encountered: