Lambda Authorizer for API Gateway - maximum size of returned policy

0

What is the limitation of the maximum document size returned by the authorizer ? Is it specified in doc [https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html] parameter : ** "Length, in characters, of API Gateway resource policy"** - 8192 ? and perhaps this same parameter called as "AWS Lambda authorizer result size" (also 8 kB) shown in Service Quotas console? Enter image description here

My dilemmas result from the fact that currently my authorizer returns policies with sizes even over 100kB and everything works fine, there are no errors in API Gateway execution logs.

1 Answer
0

I've discussed this with AWS resources and the lambda authorizer response can go up to the maximum Lambda response size of around 6MB. I've tested large responses (nowhere near 6MB, but larger than 8k) and they work fine. According to AWS, the 8k limit applies to WebSocket APIs.

Preston
answered 7 months 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