Skip to content

API reference / @backpack/config / cdkLoader

Function: cdkLoader()

ts
function cdkLoader(cdkApp, options): Loader;

Generic loader for CDK projects. Combines cdkContextLoader with yamlLoader.

Parameters

ParameterTypeDescription
cdkAppAppThe CDK app to load context variables from.
options{ configDirectory: string; genericConfigName?: string; }Additional options.
options.configDirectorystringDirectory where the configs are located.
options.genericConfigName?stringName of the generic config. Defaults to generic.

Returns

Loader