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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ