I'm setting up a AWS Lambda function that runs Go 1.x that I call with a web hook on a form submit on my website. This is the AWS Designer and Gateway POST request
When I call the Gateway API Gateway API Endpoint I get a return of errorMessage":"fork/exec /var/task/WebhookForm: no such file or directory","errorType":"PathError
the WebhookForm
is the function that I should be invoking but I can't seem to figure this problem out.
//WebhooksForm/main.go
package main
import (
"context"
"fmt"
"log"
"net/smtp"
"github.com/aws/aws-lambda-go/lambda"
)
func HandleRequest(ctx context.Context, name MyEvent) (string, error) {
return fmt.Sprintf("Hello!"), nil
}
func main() {
lambda.Start(HandleRequest)
}