Skip to content

Failing to create Context when running within al2.provided container #313

@twhit0611

Description

@twhit0611

When running the aws-lambda-rust-runtime (v0.3.x) in the official AWS Lambda container image (public.ecr.aws/lambda/provided:al2) , the runtime panics due to missing headers. We attempted to send the headers in the request but they do not seem to make it into TryFrom trait implementation for the context struct when running in a local Docker environment.

In order to make the runtime easier to consume, we would like to introduce a reasonable set of default values for the AWS Context to be used in combination with the official AWS Lambda container image. The values we chose came directly from the official AWS documentation for Lambda context.

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

    Issue actions