Skip to content

Use provided.al2 AWS Go Lambda runtime #2175

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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-gateway/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-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,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
6 changes: 3 additions & 3 deletions aws-go-lambda-gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
account, err := aws.GetCallerIdentity(ctx)
account, err := aws.GetCallerIdentity(ctx, &aws.GetCallerIdentityArgs{}, nil)
if err != nil {
return err
}
Expand Down Expand Up @@ -57,9 +57,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