Skip to content

Commit 99a9a4b

Browse files
authored
Change the executable name in the README examples to bootstrap (#476)
1 parent c80f8ac commit 99a9a4b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,9 @@ Preparing a binary to deploy to AWS Lambda requires that it is compiled for Linu
4848
## For developers on Linux and macOS
4949
``` shell
5050
# Remember to build your handler executable for Linux!
51-
GOOS=linux GOARCH=amd64 go build -o main main.go
52-
zip main.zip main
51+
# When using the `provided.al2` runtime, the handler executable should be named `bootstrap`
52+
GOOS=linux GOARCH=amd64 go build -o bootstrap main.go
53+
zip lambda-handler.zip bootstrap
5354
```
5455

5556
## For developers on Windows
@@ -68,17 +69,17 @@ in cmd.exe:
6869
set GOOS=linux
6970
set GOARCH=amd64
7071
set CGO_ENABLED=0
71-
go build -o main main.go
72-
%USERPROFILE%\Go\bin\build-lambda-zip.exe -o main.zip main
72+
go build -o bootstrap main.go
73+
%USERPROFILE%\Go\bin\build-lambda-zip.exe -o lambda-handler.zip bootstrap
7374
```
7475

7576
in Powershell:
7677
``` posh
7778
$env:GOOS = "linux"
7879
$env:GOARCH = "amd64"
7980
$env:CGO_ENABLED = "0"
80-
go build -o main main.go
81-
~\Go\Bin\build-lambda-zip.exe -o main.zip main
81+
go build -o bootstrap main.go
82+
~\Go\Bin\build-lambda-zip.exe -o lambda-handler.zip bootstrap
8283
```
8384
# Deploying your functions
8485

0 commit comments

Comments
 (0)