S3 output us_east_1 is broken

Description

Hello,
I was trying the s3 plugin, it works well if I have a bucket in us-west-1 and set up the end point to us-west-1. If I want to setup the us-east-1 endpoint if doesn't work because it is expecting us_east_1 (underscore), if I set the endpoint with underscore then I have a URI error.

With
endpoint = > us-east-1
Invalid setting for s3 output plugin:

output {
s3 {

  1. This setting must be a ["us_east_1", "us-west-1", "us-west-2", "eu-west-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "sa-east-1", "us-gov-west-1"]
    input { stdin { } }

  2. Expected one of ["us_east_1", "us-west-1", "us-west-2", "eu-west-1", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "sa-east-1", "us-gov-west-1"], got ["us-east-1"]
    endpoint_region => "us-east-1"
    ...
    }
    } {:level=>:error}

With
endpoint => us_east_1
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (InvalidURIError) the scheme https does not accept registry part:

Is it a typo ?

https://github.com/logstash/logstash/blob/master/lib/logstash/outputs/s3.rb#L118-L120

Assignee

Richard Pijnenburg

Reporter

jujugrrr

Labels

Fix versions

Affects versions

Configure