When deploying this Go-based AWS Lambda project, via AWS console, I receive:
{
"errorMessage": "fork/exec /var/task/main: exec format error",
"errorType": "PathError"
}
Here are the steps I took:
- downloaded the
marriage-master
project from Git - in Terminal,
go get "github.com/aws/aws-lambda-go/lambda"
so the script is buildable by Go - in Terminal,
go build main.go
to create file Lambda will use to execute - in Terminal,
zip main.zip main
to archive the file into a .zip for deployment to Lambda - in AWS Console, upload
main.zip
toFunction code
- in AWS Console, changed
Handler
tomain
.
But I keep getting this path error. Any idea what I'm doing wrong?