We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd5db8 commit 0dcf67eCopy full SHA for 0dcf67e
lib/fluent/plugin/out_s3.rb
@@ -486,7 +486,11 @@ def setup_credentials
486
elsif c.sts_endpoint_url
487
credentials_options[:client] = Aws::STS::Client.new(endpoint: c.sts_endpoint_url)
488
elsif @region
489
- credentials_options[:client] = Aws::STS::Client.new(region: @region)
+opt = @s3_region ? { region: @s3_region } : {}
490
+opt[:http_proxy] = c.sts_http_proxy if c.sts_http_proxy
491
+opt[:endpoint_url] = c.sts_endpoint_url if c.sts_endpoint_url
492
+
493
+credentials_options[:client] = Aws::STS::Client.new(**opt)
494
end
495
options[:credentials] = Aws::AssumeRoleCredentials.new(credentials_options)
496
when @web_identity_credentials
0 commit comments