I'm trying to download large binaries from S3 via an API Gateway URL. Because the maximum download size in API Gateway is limited I thought I just could provide the basic URL to Amazon S3 (in the swagger file) and add the folder/item to the binary I want to download.
But all I find is redirection API Gateway via a Lambda function, but I don't want that.
I want a swagger file where the redirect is already configured.
So if I call <api_url>/folder/item
I want to be redirected to s3-url/folder/item
Is this possible? And if so, how?
Example:
- S3:
https://s3.eu-central-1.amazonaws.com/folder/item
(item = large binary file) - API Gateway:
https://<id>.execute-api.eu-central-1.amazonaws.com/stage/folder/item
-> redirect to s3 url