You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add environment variable support for runtime interface emulator address
Add support for RUNTIME_INTERFACE_EMULATOR_ADDRESS environment variable
to configure the emulator address without requiring CLI flags.
This enables easier configuration in containerized environments where
modifying the entrypoint script is not practical. The implementation
follows the same pattern as LOG_LEVEL handling.
Features:
- Environment variable RUNTIME_INTERFACE_EMULATOR_ADDRESS support
- CLI flag takes precedence over environment variable (AWS CLI pattern)
- Updated help text to document the environment variable
- Added integration tests for environment variable usage
- Added test for CLI flag precedence over environment variable
Fixes#120
Copy file name to clipboardExpand all lines: cmd/aws-lambda-rie/main.go
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ type options struct {
27
27
InitCachingEnabledbool`long:"enable-init-caching" description:"Enable support for Init Caching"`
28
28
// Do not have a default value so we do not need to keep it in sync with the default value in lambda/rapidcore/sandbox_builder.go
29
29
RuntimeAPIAddressstring`long:"runtime-api-address" description:"The address of the AWS Lambda Runtime API to communicate with the Lambda execution environment."`
30
-
RuntimeInterfaceEmulatorAddressstring`long:"runtime-interface-emulator-address" default:"0.0.0.0:8080" description:"The address for the AWS Lambda Runtime Interface Emulator to accept HTTP request upon."`
30
+
RuntimeInterfaceEmulatorAddressstring`long:"runtime-interface-emulator-address" default:"0.0.0.0:8080" description:"The address for the AWS Lambda Runtime Interface Emulator to accept HTTP request upon. Can also be set by the environment variable 'RUNTIME_INTERFACE_EMULATOR_ADDRESS'."`
0 commit comments