docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Design a small infrastructure module that provisions resources for a batch workspace while honoring lifecycle rules.
preserveState is true, destroying the stack leaves the state store intact and avoids replacement on updates that only touch the runner @testadoptExistingStateId is provided, the state store is treated as an existing resource with that identifier instead of creating a new one @testexport interface WorkspaceArgs {
serviceName: string;
preserveState?: boolean;
adoptExistingStateId?: string;
}
export interface WorkspaceResult {
stateLocation: unknown;
runnerName: unknown;
}
export function createWorkspace(name: string, args: WorkspaceArgs): WorkspaceResult;Provides the infrastructure as code runtime and resource lifecycle controls.