bright-truck-37455
06/28/2021, 10:53 AMexport const dbConfig = config.requireSecretObject<Config>("dbConfig");
And in the "destination" stack
const dbConfig = remoteStack.getOutput("dbConfig");
When I'm using dbConfig var in the 2nd stack it evaluates to the Object I need, however, when I'm trying to get specfic keys, like dbConfig["host"], I get an error saying there is no such property on that Object.
P.S. TypeScript is not my main programming language, please don't go hard on me 🙂better-shampoo-48884
06/28/2021, 10:59 AMconst refStack = new pulumi.StackReference(`${referenceStackName}-reference`, {name: referenceStackName});
refStack.getOutput("stackInfo").apply(async (infra:FullStackOutput) => {
const regions = Object.keys(infra);
let providers: ProviderObject = {}
let primaryVault: VaultParam = {
resourceGroupName: "",
vaultName: ""
bright-truck-37455
06/28/2021, 11:01 AMbetter-shampoo-48884
06/28/2021, 11:01 AM.getOutput("dbConfig").apply(dbconf => {
billowy-army-68599
06/28/2021, 11:06 AMapply
to retrieve the keys