Increase the payload size limit of API Gateway

0

Hi,

While I am able to send a relatively smaller CSV file through the API Gateway to S3 it's successful. But when trying to send a moderately larger CSV file through the created API Gateway I receive the following error; 'HTTP content length exceeded 10485760 bytes'

Is it possible to increase the API gateway payload size limit in AWS?

3개 답변
3

No, it can not be increased, API Gateway quotas for configuring and running a REST API.

You can use a different architecture to get around this limitation but still use API Gateway. See: Patterns for building an API to upload files to Amazon S3

profile pictureAWS
전문가
kentrad
답변함 9달 전
profile picture
전문가
Steve_M
검토됨 9달 전
profile picture
전문가
검토됨 9달 전
0

According to this Payload size is 10 MB and can not be increased. https://docs.aws.amazon.com/apigateway/latest/developerguide/limits.html Enter image description here

Instead of posting the data directly to the API endpoint, you can generate a PreSigned S3 URL and upload using it. If any subsequent processing of the data is needed you will use S3 notifications and Lambda after the upload is completed.

Hope this helps.

AWS
답변함 9달 전
  • If there are any further questions feel free to ask. If this answer is satisfactory to you please mark it as accepted. Thanks!

0

API Gateway has a hard limit of 10MB for the payload size. It can't be increased.

The recommendation in these cases is to generate an S3 pre-signed URL and use it to upload the file to S3 and process it from there.

profile pictureAWS
전문가
Uri
답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠