Runtime.InvalidEntrypoint error on AWS Lambda Custom Runtime

Viewed 53

I have created an AWS Lambda function using Lambda Custom Runtime on Amazon Linux 2 which generates an example that, if I execute the example, it fails with permission denied error:

Response
{
  "errorMessage": "RequestId: f6adb86a-7fbd-4ed5-85d8-2e07edda78e6 Error: fork/exec /var/task/bootstrap: permission denied",
  "errorType": "Runtime.InvalidEntrypoint"
}

I am trying to use custom runtime to run a bash script in Lambda. Anyone know how I can fix this permission issue?

1 Answers

This is rather frustrating as the example custom bootstrap from AWS themselves provides files with incorrect permissions. In order to fix you need to download the files, update permissions and re upload the same files for the example to even work

Related