-
Notifications
You must be signed in to change notification settings - Fork 242
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
How to enable path style for s3 services? #390
Comments
currently the SDK will only use path style, I believe. Let me know if you see different behavior. |
Oh, because the deprecation plan of path style, I thought the new sdk will use virtual host api style by default. Please allow me to correct my question: How to control the api style between virtual host style and path style? Thanks! |
currently, the SDK only supports path style. When it is eventually released, it will probably be exposed as a configuration option on the S3 config. |
|
I just bumped into this issue because the SDK was generating virtual-host style URLs that didn't work with my Minio server. I'm guess that it might be due to this call, which appears to hardcode construction of a virtual-host style URL in some cases. (My server has a hostname like |
see this section of the changelog:
You want to set |
Excellent - somehow I missed that on the config object. Thanks! |
Update! aws-sdk-s3 >0.52
The AWS SDK for S3 now supports both virtual addressing and path style. By default, virtual addressing will be used if the bucket is DNS compatible. If you do now want to use virtual adressing, use
force_path_style(true)
when constructing the S3 client.Note: Loading s3 configuration from the
~/.aws/config
is not currently supported.Prerequisites
Question Description
How to enable path style for s3 compatible service?
For example, to use minio, we need to enable path style so that we can send request to
127.0.0.1:3000/bucket
.Platform/OS/Device
All
Language Version
Rust 1.17.0
The text was updated successfully, but these errors were encountered: