Lambda Authorizer Context Response Size Limit

0

I’ve implemented a lambda authorizer for an HTTP API using the simple response format and it works great. I am passing some extra data via the $context that is handed off to the final lambda along with the accountID. The amount of data I want to pass is already growing so I wanted to know what the limits are. The most I could find is a payload size limit for uploads to API Gateway.

Is there a size limit on the lambda authorizer response?

kh
asked 2 years ago726 views
1 Answer
0
Accepted Answer

Lambda has a limit of payload of 6MB (for sync calls, and 256kb for async) so in your case, as the context is added to the payload passed to the final lambda, the max size would be (6MB-(size payload from API gateway))

Miki
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions