in lib/recipes-data/src/lib/parameters.ts [1:13]
export function createGetMandatoryParameter(name: string): () => string {
return (): string => {
if (process.env[name]) {
return process.env[name] as string;
}
if (process.env['CI']) {
return 'test';
}
throw new Error(
`You need to define the environment variable ${name} in the lambda config`,
);
};
}