bji / libs3

Other
157 stars 151 forks source link

bucket-region for authentication #73

Closed advent-embedded closed 3 years ago

advent-embedded commented 6 years ago

I couldn't access buckets which is created other than us-east-1, (N.Virginia). for rest other buckets i get a error code as "ErrorPermanentRedirect"

martinprikryl commented 6 years ago

If your ErrorPermanentRedirect error says:

ERROR: ErrorPermanentRedirect
  Message: The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.
  Extra Details:
    Bucket: bucketname
    Endpoint: bucketname.s3.amazonaws.com

... you have to use the -h switch

   -h/--vhost-style     : use virtual-host-style URIs (default is path-style)