https://pulumi.com logo
Title
c

curved-ghost-20494

07/26/2021, 4:50 PM
Is there a away of “auto output-ing” variables? For example
const instance = new CustomResource('foo');

export.bar = instance.bar;
export.baz = instance.baz;
export.bam = instance.bam;
It’s kind of irritating to do this for lots of variables, especially if I then go and create more instances.
r

red-match-15116

07/26/2021, 5:13 PM
export const inst = instance;
should result in an exported object with all the properties.
c

curved-ghost-20494

07/26/2021, 5:32 PM
Yeeeesss. Komal, thank you! I probably should’ve thought to try that, it’s all nicely nested and everything! Thank you. Have a great day. 🙂
😛artypus-8bit: 1
👍🏽 1
1