class Aws::CredentialProviderChain

def shared_credentials(options = {})

def shared_credentials(options = {})
  SharedCredentials.new(profile_name: options[:config].profile)
rescue Errors::NoSuchProfileError
  nil
end