'Search for a credential file used by original EC2 CLI tools.'

def load(self):

    if ('AWS_CREDENTIAL_FILE' in self._environ):
        full_path = os.path.expanduser(self._environ['AWS_CREDENTIAL_FILE'])
        creds = self._parser(full_path)
        if (self.ACCESS_KEY in creds):
            logger.info('Found    credentials    in    AWS_CREDENTIAL_FILE.')
            access_key = creds[self.ACCESS_KEY]
            secret_key = creds[self.SECRET_KEY]
            return Credentials(access_key, secret_key, method=self.METHOD)
    else:
        return None
