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 Answer
0
Accepted Answer

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
EXPERT
answered a year ago
profile pictureAWS
EXPERT
reviewed a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions