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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +21 -0
- data/lib/fluent/plugin/kinesis_helper/api.rb +1 -1
- data/lib/fluent/plugin/kinesis_helper/client.rb +11 -0
- data/lib/fluent_plugin_kinesis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 529a0b5277cab5b82c165d2eaa4339c529381a17
|
4
|
+
data.tar.gz: fcc5161078a9311d511c5ecb95d4d2dfd9f078e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
@@ -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
|
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.
|
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-
|
11
|
+
date: 2019-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|