def METHOD_NAME(resources):
    """
    Sets up the resources' metadata in such a way that the resources are
    created sequentially.
    """
    if resources and len(resources) > 1:
        previous = resources[0]
        for current in resources[1:]:
            previous_name = previous['name']
            current['metadata'] = {'dependsOn': [previous_name]}
            previous = current