-
-
Notifications
You must be signed in to change notification settings - Fork 426
"argument list too long" when passing a large custom event #64
Comments
Yes, you can use the |
I tried AWS_LAMBDA_EVENT_BODY but still I get the same error. I think docker-lambda needs an option to read from stdin or a file for a large json. index.js
Generate a large json and run with it
|
@mhart How I pass data using that env variable? I'm facing this same issue running my lambda function + API locally. It works when deployed though. |
Added support for events via stdin using an echo '{"some": "event"}' | docker run --rm -v "$PWD":/var/task -i -e DOCKER_LAMBDA_USE_STDIN=1 lambci/lambda Should work on all runtimes |
@mhart Great! Thank you!! |
I debugged aws/aws-sam-cli#188 and found that a large binary data is passed as a body like below and it causes
argument list too long
error.Is there a way to pass a large custom event?
The text was updated successfully, but these errors were encountered: