获取错误 fork/exec /var/task/main: 执行 lambda 函数时没有这样的文件或目录。
我正在使用 Windows 平台在 Go 中运行和构建代码。
我已完成以下步骤来部署 go aws-lambda 处理程序:
package main
import (
"fmt"
"github.com/aws/aws-lambda-go/lambda"
)
// Request represents the requested object
type Request struct {
ID int `json:"ID"`
Value string `json:"Value"`
}
// Response represents the Response object
type Response struct {
Message string `json:"Message"`
Ok bool `json:"Ok"`
}
// Handler …Run Code Online (Sandbox Code Playgroud)