Description
After deploying the Go Hello World quickstart example (without any modifications), the deployed Lambda fails to run, with a file not found error.
Steps to reproduce
sam init --runtime go1.x
- Select the
Hello World Example
make the project (or sam build)
sam deploy --guided
- Either hit the deployed API, or test the Lambda via the console
- Observe the function fails to execute
Observed result
The following error is visible in the Lambda console:
{
"errorMessage": "fork/exec /var/task/hello-world: no such file or directory",
"errorType": "PathError"
}
Expected result
The Lambda executes.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
- OS: Ubuntu 20.04, kernal 5.4.0-42
sam --version: SAM CLI, version 1.0.0
go version: go version go1.14.5 linux/amd64
Description
After deploying the Go Hello World quickstart example (without any modifications), the deployed Lambda fails to run, with a
file not founderror.Steps to reproduce
sam init --runtime go1.xHello World Examplemakethe project (orsam build)sam deploy --guidedObserved result
The following error is visible in the Lambda console:
{ "errorMessage": "fork/exec /var/task/hello-world: no such file or directory", "errorType": "PathError" }Expected result
The Lambda executes.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version: SAM CLI, version 1.0.0go version: go version go1.14.5 linux/amd64