bakdata / aws-lambda-r-runtime

Serverless execution of R code on AWS Lambda
https://medium.com/bakdata/running-r-on-aws-lambda-9d40643551a6
MIT License
143 stars 52 forks source link

Couldn't find valid bootstrap #62

Open jimjam-slam opened 3 years ago

jimjam-slam commented 3 years ago

Hi there,

When I try to invoke the sample function script.R in this guide using arn:aws:lambda:ap-southeast-2:131329294410:layer:r-recommended-3_6_0:13, I get:

{
    "StatusCode": 200,
    "FunctionError": "Unhandled",
    "ExecutedVersion": "$LATEST"
}

And in the response:

{"errorMessage":"RequestId: 5e1a1559-17e8-4233-b866-f14335722a3e Error: Couldn't find valid bootstrap(s): [/var/task/bootstrap /opt/bootstrap]","errorType":"Runtime.InvalidEntrypoint"}

I'm still new to Lambda, so I might just be doing this wrong! I got the layer ARN from Travis CI, and it seemed to indicate that it'd built successfully.

jimjam-slam commented 3 years ago

(I should note that I also get this response when I try to invoke it from the AWS Lambda Console!)