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 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Jahr
profile pictureAWS
EXPERTE
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen