def validate_instance(in_instance):
    """
    Check that the user provided a valid instance
    """
    if not in_instance:
        return "dev"
    else:
        i = in_instance.lower()
        if i in ["prod", "test", "dev"]:
            return i
        else:
            raise IOError("Invalid instance. Must be dev, test, or prod.")