docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Automate the lifecycle of a stack using the package's automation API so that infrastructure can be deployed, inspected, and optionally torn down entirely through code.
export interface ProgramConfigEntry {
value: string;
secret?: boolean;
}
export interface RunOptions {
projectName: string;
stackName: string;
workDir?: string;
config: Record<string, ProgramConfigEntry>;
inlineProgram: () => Promise<void> | void;
destroyOnComplete?: boolean;
}
export interface PreviewSummary {
changeCount: number;
hasUnknownChanges: boolean;
errorMessage?: string;
}
export interface DeploymentResult {
preview: PreviewSummary;
outputs: Record<string, { value: unknown; secret: boolean }>;
updateChanges?: Record<string, number>;
performedDestroy: boolean;
}
export async function runProgrammaticStack(options: RunOptions): Promise<DeploymentResult>;Provides automation API for managing stacks programmatically.