GOARCH=arm64 GOOS=linux go build -o bootstrap main.go
Zip project (Windows)
C:\Users\owner\go\bin\build-lambda-zip.exe -o lambda-handler.zip bootstrap using the provided build-lambda-zip package. If needed, you can install with go install github.com/aws/aws-lambda-go/cmd/build-lambda-zip@latest. See To create a .zip deployment package (Windows)
Invoke function locally through local API Gateway
sam.cmd local start-api --template-file=template.yaml
Note: Use sam.cmd when running AWS SAM on windows
To rebuild and apply local changes, use sam.cmd build --use-container
(Optional) Run CRUD Requests Individually
Can also run CRUD API requests by importing the /bruno collection
Deployment
Ensure you follow the same steps you did to build the executable and zipping the project
GOARCH=arm64 GOOS=linux go build -o bootstrap main.go
Zip project (Windows)
C:\Users\owner\go\bin\build-lambda-zip.exe -o lambda-handler.zip bootstrap using the provided build-lambda-zip package. If needed, you can install with go install github.com/aws/aws-lambda-go/cmd/build-lambda-zip@latest. See To create a .zip deployment package (Windows)