fluent-plugin-cloudwatch-logs 0.14.1 → 0.14.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c43fba0083c45e47060ad0aa61d01acbd7d3b5a114e8e96864075a84c5a18397
|
4
|
+
data.tar.gz: 7fb5cce4a8749fd19b53378f8ab0df8b59d233f9491239a2cd98cca704109eff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5854c662f12a1f68068b99f804824547df7c5a6220bb5bf54a29a706422e1bb50625f36fe5f0b51f95f226f887bc28aadfca86d779817b50a13afba1cbf1744c
|
7
|
+
data.tar.gz: 83cd966492bbfc1d7ac96d88088628f4b80148bb72dd21a45cca4cf1f2f14cc98ed097de0be07979812220405989c5f07f34d38cb34d490779633bf06807e505
|
@@ -21,6 +21,7 @@ module Fluent::Plugin
|
|
21
21
|
config_param :aws_sts_policy, :string, default: nil
|
22
22
|
config_param :aws_sts_duration_seconds, :time, default: nil
|
23
23
|
config_param :aws_sts_endpoint_url, :string, default: nil
|
24
|
+
config_param :aws_ecs_authentication, :bool, default: false
|
24
25
|
config_param :region, :string, default: nil
|
25
26
|
config_param :endpoint, :string, default: nil
|
26
27
|
config_param :ssl_verify_peer, :bool, :default => true
|
@@ -117,6 +118,10 @@ module Fluent::Plugin
|
|
117
118
|
credentials_options[:client] = Aws::STS::Client.new(:region => @region)
|
118
119
|
end
|
119
120
|
options[:credentials] = Aws::AssumeRoleWebIdentityCredentials.new(credentials_options)
|
121
|
+
elsif @aws_ecs_authentication
|
122
|
+
# collect AWS credential from ECS relative uri ENV variable
|
123
|
+
aws_container_credentials_relative_uri = ENV["AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"]
|
124
|
+
options[:credentials] = Aws::ECSCredentials.new({credential_path: aws_container_credentials_relative_uri}).credentials
|
120
125
|
else
|
121
126
|
options[:credentials] = Aws::Credentials.new(@aws_key_id, @aws_sec_key) if @aws_key_id && @aws_sec_key
|
122
127
|
end
|
@@ -23,6 +23,7 @@ module Fluent::Plugin
|
|
23
23
|
config_param :aws_sts_policy, :string, default: nil
|
24
24
|
config_param :aws_sts_duration_seconds, :time, default: nil
|
25
25
|
config_param :aws_sts_endpoint_url, :string, default: nil
|
26
|
+
config_param :aws_ecs_authentication, :bool, default: false
|
26
27
|
config_param :region, :string, :default => nil
|
27
28
|
config_param :endpoint, :string, :default => nil
|
28
29
|
config_param :ssl_verify_peer, :bool, :default => true
|
@@ -152,6 +153,10 @@ module Fluent::Plugin
|
|
152
153
|
credentials_options[:client] = Aws::STS::Client.new(:region => @region)
|
153
154
|
end
|
154
155
|
options[:credentials] = Aws::AssumeRoleWebIdentityCredentials.new(credentials_options)
|
156
|
+
elsif @aws_ecs_authentication
|
157
|
+
# collect AWS credential from ECS relative uri ENV variable
|
158
|
+
aws_container_credentials_relative_uri = ENV["AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"]
|
159
|
+
options[:credentials] = Aws::ECSCredentials.new({credential_path: aws_container_credentials_relative_uri}).credentials
|
155
160
|
else
|
156
161
|
options[:credentials] = Aws::Credentials.new(@aws_key_id, @aws_sec_key) if @aws_key_id && @aws_sec_key
|
157
162
|
end
|
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.14.
|
4
|
+
version: 0.14.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryota Arai
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -122,7 +122,7 @@ dependencies:
|
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
|
-
description:
|
125
|
+
description:
|
126
126
|
email:
|
127
127
|
- ryota.arai@gmail.com
|
128
128
|
executables: []
|
@@ -151,7 +151,7 @@ homepage: https://github.com/fluent-plugins-nursery/fluent-plugin-cloudwatch-log
|
|
151
151
|
licenses:
|
152
152
|
- MIT
|
153
153
|
metadata: {}
|
154
|
-
post_install_message:
|
154
|
+
post_install_message:
|
155
155
|
rdoc_options: []
|
156
156
|
require_paths:
|
157
157
|
- lib
|
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: '0'
|
168
168
|
requirements: []
|
169
|
-
rubygems_version: 3.2.
|
170
|
-
signing_key:
|
169
|
+
rubygems_version: 3.2.15
|
170
|
+
signing_key:
|
171
171
|
specification_version: 4
|
172
172
|
summary: CloudWatch Logs Plugin for Fluentd
|
173
173
|
test_files:
|