Skip to content

hal requires environment variable that are not set by AWS's Runtime Interface Emulator #142

@endgame

Description

@endgame

The runtime interface emulator at https://github.com/aws/aws-lambda-runtime-interface-emulator/ is an AWS-provided way to test Lambda Functions locally. It doesn't set all the environment variables set by the "real" environment, and this causes hal to crash when trying to start. The RIE's docs call out the following three variables:

  • AWS_LAMBDA_FUNCTION_VERSION
  • AWS_LAMBDA_FUNCTION_NAME
  • AWS_LAMBDA_FUNCTION_MEMORY_SIZE

There are two more that hal expects to be present:

  • AWS_LAMBDA_LOG_GROUP_NAME
  • AWS_LAMBDA_LOG_STREAM_NAME

Would you take a PR to make these fields optional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions