lib/awsecrets.rb in awsecrets-1.10.0 vs lib/awsecrets.rb in awsecrets-1.10.1

- old
+ new

@@ -70,14 +70,11 @@ return unless @role_arn @role_session_name ||= generate_session_name @credentials ||= Aws::AssumeRoleCredentials.new( client: Aws::STS::Client.new( region: @region, - credentials: Aws::SharedCredentials.new( - region: @region, - access_key_id: @access_key_id, - secret_access_key: @secret_access_key - ) + access_key_id: @access_key_id, + secret_access_key: @secret_access_key ), role_arn: @role_arn, role_session_name: @role_session_name ) end