使用AWS API Gateway请求有效负载限制

问题描述:

AWS API-Gateway的请求有效负载限制是多少?

What is the request-payload limit with AWS API-Gateway?

我需要将带有base64编码文件和一些其他参数的JSON有效负载发送到API Gateway,然后将有效负载传递给AWS Lambda.

I need to send a JSON payload with base64 encoded files and some other parameters to API Gateway, that will then pass on the payload to AWS Lambda.

我找不到与此有关的AWS文档.

I could not find AWS documentation regarding this.

API网关的最大有效负载为10 MB,Lambda的最大有效负载为6 MB,无法增加.

Maximum payload to API gateway is 10 MB and maximum payload for Lambda is 6 MB, which cannot be increased.

请参见此处

请参见此处

但是,如果您的大小超过10 MB,则可以通过将数据上传到S3存储桶来实现此目的的另一种方法(解决方法).请阅读以下文章以了解详细信息(非官方文件):

But there is an alternative way (a work around) to achieve the same by uploading data to an S3 bucket if your size is more that 10 MB. Please read the below article for details (Unofficial document):

https://sookocheff.com/post/api/uploading-large-payloads-through-api-gateway/