Skip to content
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

[minio] Document force_path_style #226

Open
TomonoriSoejima opened this issue Jul 13, 2020 · 0 comments
Open

[minio] Document force_path_style #226

TomonoriSoejima opened this issue Jul 13, 2020 · 0 comments

Comments

@TomonoriSoejima
Copy link

I spent some time fixing a problem below and wanted to leave this issue just in case someone runs into the same problem.

Error validating bucket write permissions! {:message=>"Failed to open TCP connection to
hoge.127.0.0.1:9000 (initialize: name or service not known)"

Clearly someone ran into it in the past

    additional_settings => {
          "force_path_style" => true
        }
output {
  stdout { codec => rubydebug }
  s3 {
    access_key_id => "minioadmin"
    secret_access_key => "minioadmin"
    endpoint => "http://127.0.0.1:9000"
    bucket => "logstash"
    additional_settings => {
          "force_path_style" => true
        }

  }
}

image

Now force_path_style is an option for Aws::S3::Client

:force_path_style (Boolean) — default: false — When set to true, the bucket name is always left in the request URI and never moved to the host as a sub-domain. See Plugins::S3BucketDns for more details.

Which makes sense that it does construct hoge.127.0.0.1:9000 in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant