-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage/s3: fix precedence of region detection #331
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
seruman
requested review from
igungor,
aykutfarsak and
sonmezonur
and removed request for
a team and
aykutfarsak
July 29, 2021 13:38
Closed
@igungor @sonmezonur @ilkinulas Can this PR be reviewed? |
This was referenced Sep 20, 2021
Hi @Niek, as this change breaks the usage of auto-region detection we plan to release it on v2.0.0 in the following months. |
@seruman could you rebase and update the changelog? |
igungor
approved these changes
Sep 24, 2021
I've removed Onur from the reviewers list. He is on "vacation" for a month 😄 . 🍸 |
igungor
requested review from
aykutfarsak
and removed request for
ilkinulas
September 30, 2021 07:11
aykutfarsak
approved these changes
Sep 30, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously auto region detection would always override the region defined in SDK config which populated via
AWS_REGION/AWS_DEFAULT_REGION
or region in given profile withAWS_PROFILE
.s5cmd/storage/s3.go
Lines 822 to 832 in 02f63b3
This was causing issues mainly on users of S3 compatible services returning empty response on
HeadBucket
request that's converted intous-east-1
ins3manager.GetBucketRegion()
(1, 2) ; e.g #325, #354.This PR makes changes to predecense of region detection as below;
--source-region
or--destination-region
flags ofcp
command.AWS_REGION
environment variable.HeadBucket
).us-east-1
as default region.Resolves #325, resolves #320.
Closes #317.