Lovro
Lovro

Reputation: 822

Using HTTP API stage variable from Lambda function

In AWS API Gateway / HTTP API (not REST API), I've set a stage variable. Is there a way to get the value of that variable in a Lambda function that's called through that API?

Upvotes: 0

Views: 806

Answers (1)

jellycsc
jellycsc

Reputation: 12259

According to the doc, you can get stage via requestContext -> stage.

Upvotes: 2

Related Questions