Skip to content

Commit

Permalink
Fix aws-go-lambda build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke-Rogerson committed Jan 9, 2025
1 parent bbf343e commit e22cd09
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 3,947 deletions.
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

0 comments on commit e22cd09

Please sign in to comment.