def get_connection_config(configuration, connection):
    """
    Extracts information for a specified connection from configuration.

    Parameters:
        configuration (dict): Configuration dictionary containing a 'connections' key
        connection (string): Name of a connection to extract configuration for

    Returns:
        dict: Configuration associated with the specified connection
    """

    if not connection in configuration['connections']:
        raise RuntimeError('connection "%s" not found in config.connections' % connection)
    return configuration['connections'][connection]