lambci / docker-lambda

Docker images and test runners that replicate the live AWS Lambda environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document the use of the env vars

zvictor opened this issue · 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.

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

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

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

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

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