AWS Lambda with Docker Container runtime error: “Init failed error=fork/exec /var/runtime/bootstrap”

I’m getting this error when invoking myLambda which is using a Docker container:

Init failed error=fork/exec /var/runtime/bootstrap

To fix this, add a step to make the bootstrap file executable after you copy into the image:

RUN chmod +x ${LAMBDA_RUNTIME_DIR}/bootstrap

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.