You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently auto-region detection would always overrides the region in SDK config and causing us to ignore region given with AWS_REGION/AWS_DEFAULT_REGION environment variables or defined in given profile with AWS_PROFILE environment variable.
This causing issues with S3 compatible services returning empty response to HeadBucket request; which we used to detect bucket's region. #325, #354
Co-authored-by: Aykut Farsak <[email protected]>
This PR makes changes to predecense of region detection as below;
```
1. --source-region or --destination-region flags of cp command.
2. AWS_REGION environment variable.
3. Region section of AWS profile.
4. Auto detection from bucket region (via HeadBucket).
5. us-east-1 as default region.
```
Resolves#325, resolves#320.
Closes#317.
We are using the following information to detect bucket region:
--source-region
and--destination-region
optionshead bucket
requestDocument how and in which order s5cmd uses these values.
The text was updated successfully, but these errors were encountered: