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 Antwort
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
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen