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.
2 parents 1c9c7c8 + 139e1d0 commit f439caaCopy full SHA for f439caa
lib/fluent/plugin/in_s3.rb
@@ -209,7 +209,11 @@ def setup_credentials
209
credentials_options[:port] = c.port if c.port
210
credentials_options[:http_open_timeout] = c.http_open_timeout if c.http_open_timeout
211
credentials_options[:http_read_timeout] = c.http_read_timeout if c.http_read_timeout
212
- options[:credentials] = Aws::InstanceProfileCredentials.new(credentials_options)
+ if ENV["AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"]
213
+ options[:credentials] = Aws::ECSCredentials.new(credentials_options)
214
+ else
215
+ options[:credentials] = Aws::InstanceProfileCredentials.new(credentials_options)
216
+ end
217
when @shared_credentials
218
c = @shared_credentials
219
credentials_options[:path] = c.path if c.path
0 commit comments