S3 temporary redirect - intended handling of such redirects for v2? #4063
-
Using "s3.amazonaws.com" may cause some temporary redirects after creating the bucket. I found some examples for v1 using Any hints? Examples? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Just some more details: I use the With a couple of lines I can read the redirect address from the error response and it would be possible to setup a second But I'm wondering, if that code is required or if there is a smarter way, maybe even a configuration which does the same. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
What
withRedirectLocation
does in Java SDK v1 is to add a"x-amz-website-redirect-location"
header to the request. You can do the same thing in Java SDK v2 by setting aoverrideConfiguration
in the PutObject request builder.