Skip to content

Region setting not working #262

@kemege

Description

@kemege

I'm currently using s5cmd to backup files to CTClouds (It provides S3-compitable storage, running by China Telecom).
The s5cmd binary I'm using is compiled locally using go get.

I'm copying files to a bucket on region "sh2", and this information is specified in ~/.aws/config. However, when uploading, s5cmd always tries to upload to us-east-1, thus causing a AuthorizationHeaderMalformed error. Setting env AWS_REGION or AWS_DEFAULT_REGION to "sh2" won't change anything.

I noticed that since 1.2.0, s5cmd includes a feature "automatically determines region information of destination buckets". I'm wondering if it has anything to do with this feature, or is there any way I can confirm that, since adding --log debug won't give me any additional information.

Metadata

Metadata

Assignees

Labels

non-awsIssue related to other S3-Compatible Services

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions