awslabs / awslabs/aws-sdk-rust
[request]: Automatic S3 redirect for buckets in different region
- Dominant language
- Rust
- Stars
- 3.3k
- Forks
- 290
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 3
Description
### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue, please leave a comment
**Tell us about your request**
S3 redirect error doesn't show the correct region:
```
Error { code: "PermanentRedirect", message: "The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.", request_id: "9PB9KNC9WZH8W4HH", s3_extended_request_id: "scvgDgW5NyPZO/XR9d8S9Swp/hN3h1VLywZ08YzScDc7OwlURxdK0g2tALlpnZ0RBKFkgosrXrU=" }
```
**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
What outcome are you trying to achieve, ultimately, and why is it hard/impossible to do right now? What is the impact of not having this problem solved? The more details you can provide, the better we'll be able to understand and solve the problem.
**Are you currently working around this issue?**
How are you currently solving this problem?
Using debug logging
**Additional context**
Anything else we should know?
**Attachments**
If you think you might have additional information that you'd like to include via an attachment, please do - we'll take a look. (Remember to remove any personally-identifiable information.)
Contributor guide
Research direction
Start by reproducing the S3 PermanentRedirect response with debug logging, as described in the issue, and inspect how the SDK handles a bucket request when the bucket is in another region. Done means the client automatically follows the redirect or otherwise uses the specified endpoint, rather than exposing the region error to callers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, rust
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100