def attach_rconfiguration(context, id, name, topic_id, component_types, data):
    """attach_rconfiguration(context, name, topic_id, component_types, data):

    Attach an rconfiguration to a Remote CI

    >>> dcictl remoteci-attach-rconfiguration ID [OPTIONS]

    :param string id: id of the remoteci
    :param string name: name of the rconfiguration [required]
    :param string topic_id: ID of the topic to associate this rconfiguration
        with [required]
    :param string component_types: list data to represent the overriden
        component_types
    :param string data: JSON data of the rconfiguration
    """

    result = remoteci.add_rconfiguration(context, id, name, topic_id,
                                         component_types, data)
    utils.format_output(result, context.format)