def read_ip_from_terraform(host_file):
    """
    Opens the specified file by name and returns a list. Each element of the
    list corresponds to one line in the file. Newline characters are removed
    from each line of the file.

    :param host_file: the name of te file to open
    :return: a list of strings - each element is a line from the file
    """
    with open(host_file) as open_file:
        return open_file.read().splitlines()