aws / aws-lambda-runtime-interface-emulator

Apache License 2.0
921 stars 95 forks source link

valid the bootstraps before passing to NewBootstrapSingleCmd #45

Closed wchengru closed 3 years ago

wchengru commented 3 years ago

Issue #, if available: This PR is to fix an issue in SAM CLI running sam local invoke with error level=error msg="Init failed" InvokeID= error="fork/exec /var/task/bootstrap: no such file or directory" We validate the existence of the three bootstrap file options at first.

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.