sparse-intern-71089
01/27/2021, 8:20 PMlittle-cartoon-10569
01/27/2021, 9:00 PMconst airflowArgs = Output.all([
airflowAddress,
airFlowPassword
]).apply(([addr, pwd]) => return { // Building structured output here.
address: addr,
password: pwd
});
airflowArgs.apply(args => { // Applying structured output here, effectively translating positional args to named args.
return {
name: "AIRFLOW_CONN_METADATA_DB",
value: `<postgres+psycopg2://airflow:{args.password}@{args.address}:5432/airflow>`
};
});
You can do this in as small or large chunks as you like.quiet-leather-94755
01/28/2021, 5:46 AMquiet-leather-94755
01/28/2021, 5:46 AM