Skip to content

Commit 3ac64e5

Browse files
committed
remove unnecessary InstanceProfileCredentials() from the shared_credentials block
Signed-off-by: Joshua Atkins <[email protected]>
1 parent a1f51b9 commit 3ac64e5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/fluent/plugin/in_s3.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,7 @@ def setup_credentials
218218
c = @shared_credentials
219219
credentials_options[:path] = c.path if c.path
220220
credentials_options[:profile_name] = c.profile_name if c.profile_name
221-
if ENV["AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"]
222-
options[:credentials] = Aws::ECSCredentials.new(credentials_options)
223-
else
224-
options[:credentials] = Aws::InstanceProfileCredentials.new(credentials_options)
225-
end
221+
options[:credentials] = Aws::ECSCredentials.new(credentials_options)
226222
else
227223
# Use default credentials
228224
# See http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Client.html

0 commit comments

Comments
 (0)