kislyuk / aegea

Amazon Web Services Operator Interface
Apache License 2.0
68 stars 17 forks source link

batch submit --execute: Follow s3 redirects for staging bucket url #51

Closed MarkAZhang closed 4 years ago

MarkAZhang commented 4 years ago

s3 sometimes sends this 307 response for pre-signed urls to non-regional bucket endpoints:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>TemporaryRedirect</Code><Message>Please re-send this request to the specified temporary endpoint. Continue to use the original request endpoint for future requests.</Message><Endpoint>aegea-ecs-execute-prod.s3-us-west-2.amazonaws.com</Endpoint><Bucket>aegea-ecs-execute-prod</Bucket>...</Error>