diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 6132ef2a..d9a005d0 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -103,7 +103,7 @@ This plugin supports the following configuration options plus the <> |<>|No | <> |<>, one of `["AES256", "aws:kms"]`|No | <> |<>|No -| <> |<>, one of `["v2", "v4"]`|No +| <> |<>, one of `["s3", "v4"]`|No | <> |<>|No | <> |<>|No | <> |<>, one of `["STANDARD", "REDUCED_REDUNDANCY", "STANDARD_IA", "ONEZONE_IA"]`|No diff --git a/lib/logstash/outputs/s3.rb b/lib/logstash/outputs/s3.rb index 3b51f633..697cfd79 100644 --- a/lib/logstash/outputs/s3.rb +++ b/lib/logstash/outputs/s3.rb @@ -164,7 +164,7 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base # The version of the S3 signature hash to use. Normally uses the internal client default, can be explicitly # specified here - config :signature_version, :validate => ['v2', 'v4'] + config :signature_version, :validate => ['s3', 'v4'] # Define tags to be appended to the file on the S3 bucket. # diff --git a/spec/outputs/s3_spec.rb b/spec/outputs/s3_spec.rb index 4de2ac91..e9a72f76 100644 --- a/spec/outputs/s3_spec.rb +++ b/spec/outputs/s3_spec.rb @@ -30,7 +30,7 @@ context "#register configuration validation" do describe "signature version" do it "should set the signature version if specified" do - ["v2", "v4"].each do |version| + ["s3", "v4"].each do |version| s3 = described_class.new(options.merge({ "signature_version" => version })) expect(s3.full_options).to include(:signature_version => version) end