def get_stack_output(stack, name: str) -> str:
    """Get a named output directly from a CF stack"""
    for output in stack.outputs:
        if output["OutputKey"] == name:
            return output["OutputValue"]
    raise ValueError(f"No stack output with name {name} found in stack {stack}!")