docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A helper that builds a small deployment while enforcing stack-level transformations for tagging, data lookups, and safe renames using the dependency package.
defaults into each resource's tag/metadata map without overwriting explicit per-resource keys. Entries listed in skip must not be modified by the transformation. @testdefaults map unless callers provide those keys explicitly. @testrenameFrom is provided, the resource options must include an alias back to that previous name so the deployment updates in place instead of replacing the resource. @testbuildStack should create one primary resource and run one data-source lookup using lookupArgs; both operations must be subject to the transformations described above, and the resulting names/outputs are returned in BuildResult.
export interface TransformConfig {
defaults: Record<string, string>;
skip?: string[];
renameFrom?: string;
lookupArgs: Record<string, unknown>;
}
export interface BuildResult {
resourceName: string;
resourceTags: Promise<Record<string, string>>;
lookupResult: Promise<Record<string, unknown>>;
}
export function buildStack(config: TransformConfig): BuildResult;Provides resource and invoke transformation hooks plus alias support needed for the helper.