logstash-output-s3 4.0.1 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba2d9ff2b3f773168a40cd195d05d42c4ea87eb7
4
- data.tar.gz: bf09bba8aa48c46fbcbb49dd81d4c63c64bb464a
3
+ metadata.gz: ec9c55fa24c4711344516d06763f977e78462f43
4
+ data.tar.gz: 88475769f935c73400adcc168ccb19ec4ffa44e2
5
5
  SHA512:
6
- metadata.gz: 3ef3aeec9e810643fa4193063f815aa23b1afb4025b1d9930f3abef54ae816f3d1fc1b0be63afb3d25c58c6cb19fe01c8b7de5caee0162305f2802851203adbc
7
- data.tar.gz: d33c6f1185a709cac31f52464083b1a562ea0848e23282f6a7f9da18527f02f4cc9a6a143fc9ad910637d28afedaf5131441094442b02b684adb77f39957319a
6
+ metadata.gz: ddf1170cd85706fa7b93ea9046d84243ca1fa4835e58d17acfb29a49a9eeba400a59e534df1bce985c6457d54719dd40f1190937b57b990c7b3f9e66fbd3ee4c
7
+ data.tar.gz: a791fb9e6e0c1f76a5628281047bcc1271336be2c3d1113b465c801f854d1b2bae7f6b40d9fc1bf3934d013d7a0a68a898e64eb3ad8ae02636fe3b05a0d832e0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 4.0.2
2
+ - Fixed AWS authentication when using instance profile credentials.
3
+
1
4
  ## 4.0.1
2
5
  - Improved Error logging for S3 validation. Now specific S3 perms errors are logged
3
6
 
data/CONTRIBUTORS CHANGED
@@ -5,6 +5,7 @@ Contributors:
5
5
  * Colin Surprenant (colinsurprenant)
6
6
  * Helmut Duregger (hduregger)
7
7
  * Jordan Sissel (jordansissel)
8
+ * Joshua Spence (joshuaspence)
8
9
  * Kurt Hurtado (kurtado)
9
10
  * Mattia Peterle (MattiaBeast)
10
11
  * Nick Ethier (nickethier)
@@ -253,7 +253,7 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base
253
253
  end
254
254
 
255
255
  def full_options
256
- options = { :credentials => credentials }
256
+ options = Hash.new
257
257
  options[:s3_signature_version] = @signature_version if @signature_version
258
258
  options.merge(aws_options_hash)
259
259
  end
@@ -281,7 +281,7 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base
281
281
  end
282
282
 
283
283
  def bucket_resource
284
- Aws::S3::Bucket.new(@bucket, { :credentials => credentials }.merge(aws_options_hash))
284
+ Aws::S3::Bucket.new(@bucket, full_options)
285
285
  end
286
286
 
287
287
  def aws_service_endpoint(region)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-s3'
3
- s.version = '4.0.1'
3
+ s.version = '4.0.2'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "This plugin was created for store the logstash's events into Amazon Simple Storage Service (Amazon S3)"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -105,9 +105,6 @@ describe LogStash::Outputs::S3::FileRepository do
105
105
 
106
106
  @file_repository.get_file("another-prefix") { |file| file.write("hello") }
107
107
  expect(@file_repository.size).to eq(2)
108
- @file_repository.keys.each do |k|
109
- puts k
110
- end
111
108
  try(10) { expect(@file_repository.size).to eq(1) }
112
109
  expect(File.directory?(path)).to be_falsey
113
110
  end
@@ -9,7 +9,7 @@ shared_context "setup plugin" do
9
9
  let(:time_file) { 100 }
10
10
  let(:tags) { [] }
11
11
  let(:prefix) { "home" }
12
- let(:region) { "us-east-1" }
12
+ let(:region) { ENV['AWS_REGION'] }
13
13
 
14
14
  let(:main_options) do
15
15
  {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-s3
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-03 00:00:00.000000000 Z
11
+ date: 2017-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement