docker-lambda icon indicating copy to clipboard operation
docker-lambda copied to clipboard

Document the use of the env vars

Open zvictor opened this issue 5 years ago • 5 comments

What are the DOCKER_LAMBDA_* environment variables used for?

One would assume that e.g. DOCKER_LAMBDA_NO_MODIFY_LOGS would silent the Handler/layer file changed, restarting bootstrap... messages, but it doesn't. Not knowing what the flags are for makes it hard to know if they are actually working.

zvictor avatar Dec 26 '20 13:12 zvictor

It's an advanced setting that affects the replacement of \r and \n in the output – due to Lambda's mangling of log output

mhart avatar Dec 26 '20 13:12 mhart

Is there a way to silent the Handler/layer file changed, restarting bootstrap... messages?

zvictor avatar Dec 26 '20 14:12 zvictor

Not with a flag. Those messages are written to stderr, so you could redirect the output of stderr (ie 2>/dev/null)

mhart avatar Dec 26 '20 16:12 mhart

Is it safe to do so? Won't I get errors muted?

zvictor avatar Jan 18 '21 16:01 zvictor

Errors will still be returned to your Lambda via the API, which I assume is how you're invoking your functions?

mhart avatar Jan 18 '21 18:01 mhart