fluent-plugin-kinesis 3.0.0 → 3.1.0

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: d525a1183f3d3aec1209db62718f8aa412a7c0eb
4
- data.tar.gz: 3b197806fe40602e39462232cdce58ccbc3b02d6
3
+ metadata.gz: 529a0b5277cab5b82c165d2eaa4339c529381a17
4
+ data.tar.gz: fcc5161078a9311d511c5ecb95d4d2dfd9f078e4
5
5
  SHA512:
6
- metadata.gz: a0144ae7446308a043139383e64c2de61875163c4114e2344389a4474c9465fcdb8b5bb1bad7c45d1d1fb56be20601016776315ef8d0fe0657fa4fec1c97dc49
7
- data.tar.gz: 593f79bec197980ce5d3e9f3b1e9884575efd19166dd3d850280472b174f199ae4f486c33622d312da2d1f3b861f9c41ff50b791868e9ccbb52d5bbc487622b8
6
+ metadata.gz: 05661c7aa7080a5e693d58f4d16a07bbeb8f426bbddefacc7fcce78dfe411f098f1829ffd9bf0c5e253b79419605a00d49c1baf44248512e9f6190e97e8c4c1f
7
+ data.tar.gz: 7c4530a60cc37bbef7ca85559a07b0fee5038be2d84c195fd68900a7dba73485ae5b2d29aec1f0b585185a160f4317dc111a190951899a0451437b5978d96764
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 3.1.0
4
+
5
+ - Feature - Add process_credentials configuration : [#178](https://github.com/awslabs/aws-fluent-plugin-kinesis/pull/178)
6
+
3
7
  ## 3.0.0
4
8
 
5
9
  Plugin v3 is almost compatible with v2. You can use v3 with the same configuration as v2. For more details, please see [README](README.md).
data/README.md CHANGED
@@ -241,6 +241,27 @@ Path to the shared file. Defaults to "#{Dir.home}/.aws/credentials".
241
241
 
242
242
  Defaults to 'default' or `[ENV]('AWS_PROFILE')`.
243
243
 
244
+ ### process_credentials
245
+
246
+ This loads AWS access credentials from an external process.
247
+
248
+ <match *>
249
+ @type kinesis_streams
250
+
251
+ <process_credentials>
252
+ process CMD
253
+ </process_credentials>
254
+ </match>
255
+
256
+ See also:
257
+
258
+ * [Aws::ProcessCredentials](https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/ProcessCredentials.html)
259
+ * [Sourcing Credentials From External Processes](https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#sourcing-credentials-from-external-processes)
260
+
261
+ **process (required)**
262
+
263
+ Command to be executed as an external process.
264
+
244
265
  ## Configuration: Format
245
266
 
246
267
  ### format (section)
@@ -79,7 +79,7 @@ module Fluent
79
79
  yield(batch, size)
80
80
  batch = []
81
81
  size = 0
82
- end
82
+ end
83
83
  batch << record
84
84
  size += record_size
85
85
  end
@@ -63,6 +63,10 @@ module Fluent
63
63
  desc "Profile name. Default to 'default' or ENV['AWS_PROFILE']"
64
64
  config_param :profile_name, :string, default: nil
65
65
  end
66
+ config_section :process_credentials, multi: false do
67
+ desc "External process to execute."
68
+ config_param :process, :string
69
+ end
66
70
  end
67
71
 
68
72
  def self.included(mod)
@@ -146,6 +150,13 @@ module Fluent
146
150
  credentials_options[:path] = c.path if c.path
147
151
  credentials_options[:profile_name] = c.profile_name if c.profile_name
148
152
  options[:credentials] = Aws::SharedCredentials.new(credentials_options)
153
+ when @process_credentials
154
+ if Gem::Version.new(Aws::CORE_GEM_VERSION) < Gem::Version.new('3.24.0')
155
+ raise Fluent::ConfigError, "Config process_credentials requires aws-sdk-core >= 3.24.0. Found aws-sdk-core #{Aws::CORE_GEM_VERSION} instead."
156
+ end
157
+ c = @process_credentials
158
+ process = c.process
159
+ options[:credentials] = Aws::ProcessCredentials.new(process)
149
160
  else
150
161
  # Use default credentials
151
162
  # See http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Client.html
@@ -13,5 +13,5 @@
13
13
  # language governing permissions and limitations under the License.
14
14
 
15
15
  module FluentPluginKinesis
16
- VERSION = '3.0.0'
16
+ VERSION = '3.1.0'
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kinesis
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-19 00:00:00.000000000 Z
11
+ date: 2019-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd