Skip to content

Question and Concerns Around build-lambda-zip Utility - Seems to be unnecessary #493

Open
@js10x

Description

@js10x

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions