UNPKG

@fairmint/canton-node-sdk

Version:
30 lines (25 loc) 970 B
// Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. // SPDX-License-Identifier: Apache-2.0 import { runSvCantonForSvs } from '../sv-canton/pulumi'; import { awaitAllOrThrowAllExceptions, Operation, PulumiAbortController, stack } from '../pulumi'; import { downOperation, downStack } from '../pulumiOperations'; const abortController = new PulumiAbortController(); async function runRunbookDown() { let operations: Operation[] = []; const svRunbookStack = await stack('sv-runbook', 'sv-runbook', true, {}); operations.push(downOperation(svRunbookStack, abortController)); const cantonStacks = runSvCantonForSvs( ['sv'], 'down', stack => { return downStack(stack, abortController); }, false ); operations = operations.concat(cantonStacks); await awaitAllOrThrowAllExceptions(operations); } runRunbookDown().catch(() => { console.error('Failed to run up'); process.exit(1); });