Skip to content
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

Use provided.al2 AWS Go Lambda runtime to fix build process #1677

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aws-go-lambda/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
build::
GOOS=linux GOARCH=amd64 go build -o ./handler/handler ./handler/handler.go
zip -j ./handler/handler.zip ./handler/handler
GOOS=linux GOARCH=amd64 go build -o ./handler/bootstrap ./handler/handler.go
zip -j ./handler/handler.zip ./handler/bootstrap
4 changes: 2 additions & 2 deletions aws-go-lambda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ After cloning this repo, run these commands from the working directory:
set GOOS=linux
set GOARCH=amd64
set CGO_ENABLED=0
go build -o handler\handler handler\handler.go
%USERPROFILE%\Go\bin\build-lambda-zip.exe -o handler\handler.zip handler\handler
go build -o handler\bootstrap handler\handler.go
%USERPROFILE%\Go\bin\build-lambda-zip.exe -o handler\handler.zip handler\bootstrap
```


Expand Down
967 changes: 13 additions & 954 deletions aws-go-lambda/go.mod

Large diffs are not rendered by default.

3,007 changes: 20 additions & 2,987 deletions aws-go-lambda/go.sum

Large diffs are not rendered by default.

Binary file added aws-go-lambda/handler/bootstrap
Binary file not shown.
Binary file removed aws-go-lambda/handler/handler
Binary file not shown.
Binary file modified aws-go-lambda/handler/handler.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions aws-go-lambda/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ func main() {

// Set arguments for constructing the function resource.
args := &lambda.FunctionArgs{
Handler: pulumi.String("handler"),
Handler: pulumi.String("bootstrap"),
Role: role.Arn,
Runtime: pulumi.String("go1.x"),
Runtime: pulumi.String("provided.al2"),
Code: pulumi.NewFileArchive("./handler/handler.zip"),
}

Expand Down
Loading