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 年前206 查看次数
1 回答
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
已回答 8 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则