-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add environment variable for --runtime-interface-emulator-address #120
Comments
Hi. There is already a parameter that you can pass called (Definition and Example usage in the tests) Is this what you're looking for? |
The #!/bin/sh
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
if [ $# -ne 1 ]; then
echo "entrypoint requires the handler name to be the first argument" 1>&2
exit 142
fi
export _HANDLER="$1"
RUNTIME_ENTRYPOINT=/var/runtime/bootstrap
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then
exec /usr/local/bin/aws-lambda-rie $RUNTIME_ENTRYPOINT
else
exec $RUNTIME_ENTRYPOINT
fi The command line parameters passed to |
Ok. I understand what's the use case now. If you want to make a contribution, we would be happy to review and merge. It should be something similar to how the In any case, we'll take this into consideration and see when we can take this. |
@valerena , could you look into adding it? |
Hi @shaicoleman. I don't have enough bandwidth to submit the changes myself at the moment, but I could help reviewing code if you want to send a PR. |
At the moment it's not possible to configure the runtime interface emulator address without patching the docker image.
The default is
0.0.0.0:8080
, and I would like to restrict it to the local network for security reasons.The text was updated successfully, but these errors were encountered: