Skip to content

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

Not planned
@shaicoleman

Description

@shaicoleman

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

Activity

shaicoleman

shaicoleman commented on Jul 23, 2024

@shaicoleman
Author

Duplicate of #120

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @shaicoleman

        Issue actions

          Environment variable for runtime-interface-emulator-address · Issue #102 · aws/aws-lambda-runtime-interface-emulator