Skip to content

Lambda context #244

Closed
Closed
@mkdynamic

Description

@mkdynamic

Is it possible to access the Lambda context from the request?

Looks like the current context header is being set from the event payload vs. from the actual Lambda context: https://github.com/awslabs/aws-lambda-web-adapter/blob/main/src/lib.rs#L332

Specifically, I need to access the requestId from that context (i.e. this https://docs.rs/lambda_http/latest/lambda_http/struct.Context.html), since I am invoking Lambda directly (constructing an event payload that is conformant with ALB or API-GW formats) where I do not have access the the actual Lambda request ID.

Related somewhat to #216 since this ultimately stems from calling Lambda running the LWA that are not truly from a web request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions