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 réponse
0
Réponse acceptée

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
répondu il y a un an
profile pictureAWS
EXPERT
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions