I've created a AWS Lambda function that I'm using a Webhook to call an API Gateway Below is the code I've built with go build -o main.go
since I've been reading that you have to specify the extension.
package main
import (
"context"
"fmt"
"github.com/aws/aws-lambda-go/lambda"
)
func HandleRequest(ctx context.Context) (string, error) {
return fmt.Sprintf("Hello!"), nil
}
func main() {
lambda.Start(HandleRequest)
}
The issue is even though I have public permissions on my uploaded S3 function .zip as well as role permissions I'm still getting a permissions error.
{
"errorMessage": "fork/exec /var/task/main: permission denied",
"errorType": "PathError"
}