Skip to content
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

Environment variable for runtime-interface-emulator-address #102

Closed
shaicoleman opened this issue Oct 23, 2023 · 1 comment
Closed

Environment variable for runtime-interface-emulator-address #102

shaicoleman opened this issue Oct 23, 2023 · 1 comment

Comments

@shaicoleman
Copy link

shaicoleman commented Oct 23, 2023

Please allow setting the runtime-interface-emulator-address via an environment variable.
At the moment it's only possible to configure it through the command line.

Use case:
Trying to run a lambda locally (e.g. public.ecr.aws/lambda/ruby:3.2-x86_64) which needs to connect to a port on the host using the --network host parameter.
At the moment I need to manually patch the lambda-entrypoint.sh file, e.g. change the line to configure the port
From:

exec /usr/local/bin/aws-lambda-rie $RUNTIME_ENTRYPOINT

To:

exec /usr/local/bin/aws-lambda-rie $RUNTIME_ENTRYPOINT --runtime-interface-emulator-address=0.0.0.0:9999
@shaicoleman
Copy link
Author

Duplicate of #120

@shaicoleman shaicoleman closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant