def get_all_ips(instance):
    """ Returns the public and private ip addresses of an AWS EC2 instances
    """
    output = []
    output.append(instance.private_ip_address)
    output.append(instance.public_ip_address)
    return output