fluent-plugin-cloudwatch-logs 0.11.0 → 0.11.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d78abf2df32b76a85618e07a9164b6b4b59085bb56054b9cff15a947674eb26
|
4
|
+
data.tar.gz: 935d10a414f4ac4e83d619978695aa98bc2ec784c02ef5e60ec082ac7b39f667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f5113e44e0fb327000423a12292f1d6c25be4e5e491773e3e074b06a9c4206797ac0a3873c5b252da9dbbfa705d7989bb6b84f71d39e4080c5eb882555c914e
|
7
|
+
data.tar.gz: ee663a6f50e7788703d3bea274c194ea83d4b330d25b284112682247984cf9de344d00a4a7aba8d7f6e7589c396510e0a0970cb48bea73d73841eb1c22e3cd77
|
@@ -17,6 +17,7 @@ module Fluent::Plugin
|
|
17
17
|
config_param :aws_use_sts, :bool, default: false
|
18
18
|
config_param :aws_sts_role_arn, :string, default: nil
|
19
19
|
config_param :aws_sts_session_name, :string, default: 'fluentd'
|
20
|
+
config_param :aws_sts_endpoint_url, :string, default: nil
|
20
21
|
config_param :region, :string, default: nil
|
21
22
|
config_param :endpoint, :string, default: nil
|
22
23
|
config_param :tag, :string
|
@@ -82,10 +83,17 @@ module Fluent::Plugin
|
|
82
83
|
|
83
84
|
if @aws_use_sts
|
84
85
|
Aws.config[:region] = options[:region]
|
85
|
-
|
86
|
+
credentials_options = {
|
86
87
|
role_arn: @aws_sts_role_arn,
|
87
88
|
role_session_name: @aws_sts_session_name
|
88
|
-
|
89
|
+
}
|
90
|
+
credentials_options[:sts_endpoint_url] = @aws_sts_endpoint_url if @aws_sts_endpoint_url
|
91
|
+
if @region and @aws_sts_endpoint_url
|
92
|
+
credentails_options[:client] = Aws::STS::Client.new(:region => @region, endpoint: @aws_sts_endpoint_url)
|
93
|
+
elsif @region
|
94
|
+
credentails_options[:client] = Aws::STS::Client.new(:region => @region)
|
95
|
+
end
|
96
|
+
options[:credentials] = Aws::AssumeRoleCredentials.new(credentials_options)
|
89
97
|
elsif @web_identity_credentials
|
90
98
|
c = @web_identity_credentials
|
91
99
|
credentials_options = {}
|
@@ -19,6 +19,7 @@ module Fluent::Plugin
|
|
19
19
|
config_param :aws_use_sts, :bool, default: false
|
20
20
|
config_param :aws_sts_role_arn, :string, default: nil
|
21
21
|
config_param :aws_sts_session_name, :string, default: 'fluentd'
|
22
|
+
config_param :aws_sts_endpoint_url, :string, default: nil
|
22
23
|
config_param :region, :string, :default => nil
|
23
24
|
config_param :endpoint, :string, :default => nil
|
24
25
|
config_param :log_group_name, :string, :default => nil
|
@@ -101,10 +102,17 @@ module Fluent::Plugin
|
|
101
102
|
|
102
103
|
if @aws_use_sts
|
103
104
|
Aws.config[:region] = options[:region]
|
104
|
-
|
105
|
+
credentials_options = {
|
105
106
|
role_arn: @aws_sts_role_arn,
|
106
107
|
role_session_name: @aws_sts_session_name
|
107
|
-
|
108
|
+
}
|
109
|
+
credentials_options[:sts_endpoint_url] = @aws_sts_endpoint_url if @aws_sts_endpoint_url
|
110
|
+
if @region and @aws_sts_endpoint_url
|
111
|
+
credentails_options[:client] = Aws::STS::Client.new(:region => @region, endpoint: @aws_sts_endpoint_url)
|
112
|
+
elsif @region
|
113
|
+
credentails_options[:client] = Aws::STS::Client.new(:region => @region)
|
114
|
+
end
|
115
|
+
options[:credentials] = Aws::AssumeRoleCredentials.new(credentials_options)
|
108
116
|
elsif @web_identity_credentials
|
109
117
|
c = @web_identity_credentials
|
110
118
|
credentials_options = {}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-cloudwatch-logs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|