Is the API Gateway integration with S3 allow uploading larger files than 10MB?

0

I am trying to build an upload API where my user is able to upload large files up to 10 GBs. My initial thinking was to have ECS instances accept uploads behind an API gateway but quickly realised the API Gateway limits uploads to a max 10MB payload.

I then found this article https://aws.amazon.com/premiumsupport/knowledge-center/api-gateway-upload-image-s3/ which suggests some kind of a API Gateway integeration with S3 but I can't imagine the technique in the article lifting the upload limit. Is my assumption here correct?

1 個回答
0
已接受的答案

Hi,

You are correct. That integration will not make the 10mb limit go away. That article only mentions an API GW ->S3 Integration type via AWS Service, instead of using a container/serverless in the middle.

Instead, to upload larger files via an API gateway, you would:

  • Create an api gateway with a lambda proxy integration
  • The function generates a signed URL granting upload access to S3 bucket and gives back the url to the user, as api response.
  • The user can now upload larger files using a combination of S3 presigned urls and multipart upload.

https://docs.aws.amazon.com/AmazonS3/latest/userguide/PresignedUrlUploadObject.html

https://docs.aws.amazon.com/AmazonS3/latest/userguide/mpu-upload-object.html

profile picture
專家
已回答 1 年前
profile pictureAWS
專家
已審閱 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南