libs3
libs3 copied to clipboard
bucket's region
how to set region for connection? i cannot operate the North Californa region's bucket, but the US Standard region's bucet is ok. i am in china.
Even i face up the same issue, it dosen't work for other regions except us-east-1, i.e, N.Virgina, could someone help in fixing this
If you are getting ErrorPermanentRedirect
with:
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)