Skip to content

Commit 4508af3

Browse files
Merge pull request #2176 from syedriko/aws_ssl_verify_peer
In fluentd-plugin-cloudwatch-logs, added support for passing the ssl_verify_peer flag to the AWS SDK
2 parents 097bdcd + d0a0cb3 commit 4508af3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
diff --git a/lib/fluent/plugin/out_cloudwatch_logs.rb b/lib/fluent/plugin/out_cloudwatch_logs.rb
2+
index fb5077919..5a57ba985 100644
3+
--- a/lib/fluent/plugin/out_cloudwatch_logs.rb
4+
+++ b/lib/fluent/plugin/out_cloudwatch_logs.rb
5+
@@ -19,6 +19,7 @@ module Fluent::Plugin
6+
config_param :aws_sts_session_name, :string, default: 'fluentd'
7+
config_param :region, :string, :default => nil
8+
config_param :endpoint, :string, :default => nil
9+
+ config_param :ssl_verify_peer, :bool, :default => true
10+
config_param :log_group_name, :string, :default => nil
11+
config_param :log_stream_name, :string, :default => nil
12+
config_param :auto_create_stream, :bool, default: false
13+
@@ -88,6 +89,7 @@ module Fluent::Plugin
14+
options[:log_level] = ({0 => :trace, 1 => :debug, 2 => :info, 3 => :warn, 4 => :error, 5 => :fatal}[log.level] || :info) if log
15+
options[:region] = @region if @region
16+
options[:endpoint] = @endpoint if @endpoint
17+
+ options[:ssl_verify_peer] = @ssl_verify_peer
18+
options[:instance_profile_credentials_retries] = @aws_instance_profile_credentials_retries if @aws_instance_profile_credentials_retries
19+
20+
if @aws_use_sts

0 commit comments

Comments
 (0)