def get_attached_instance(self):
    """
    Returns the Instance object the volume is mounted on.

    :param boto.ec2.volume.Volume self:
        Current volume

    :return:
        boto.ec2.instance.Instance if the volume is attached to an instance and the instance is found. None otherwise.
    :rtype: boto.ec2.instance.Instance
    """
    if self.attachment_state() == 'attached':
        return self.connection.get_only_instances(self.attach_data.instance_id)[0]
    else:
        print("{} volume isn't attached to an instance".format(self))
        return None