sparse-intern-71089
11/24/2021, 5:23 AMproud-pizza-80589
11/24/2021, 8:28 AMcrooked-pillow-11944
11/24/2021, 12:22 PMbored-oyster-3147
11/24/2021, 1:52 PMmost-lighter-95902
11/24/2021, 4:31 PMmost-lighter-95902
11/24/2021, 4:31 PMconst clusterStackRef = new pulumi.StackReference('<org>/<project>/cluster')most-lighter-95902
11/24/2021, 4:32 PMconst clusterName = clusterStackRef.getOutput('clusterName').apply(t => console.log(t))most-lighter-95902
11/24/2021, 4:32 PMundefinedbored-oyster-3147
11/24/2021, 5:07 PMmost-lighter-95902
11/24/2021, 5:18 PMLocalWorkspace.createOrSelectStack and stack.up is being called) multiple times in sequence to set up multiple stacksmost-lighter-95902
11/24/2021, 5:19 PMrun('cluster')
run('cluster_autoscaler')
run('db')
run('app')
...most-lighter-95902
11/24/2021, 5:19 PMpulumi stack ls the created stacks show up finemost-lighter-95902
11/24/2021, 5:20 PMStackReference should work then?most-lighter-95902
11/24/2021, 5:25 PMStackReference inside the program (i.e. program arg of await LocalWorkspace.createOrSelectStack). That’s supposed to work assuming this local setup, correct?most-lighter-95902
11/24/2021, 5:49 PMmost-lighter-95902
11/24/2021, 5:50 PMmost-lighter-95902
11/24/2021, 5:51 PMmost-lighter-95902
11/24/2021, 5:51 PMmost-lighter-95902
11/24/2021, 6:02 PMpulumi stack ls shows all stacks so maybe this is just a UI thingmost-lighter-95902
11/24/2021, 6:37 PMundefined . Thanks for looking into this!bored-oyster-3147
11/24/2021, 6:38 PMmost-lighter-95902
11/24/2021, 10:55 PMPromise<pulumi.Output<string>[]>). But when I do a StackReference.getOutput, the type is pulumi.Output<any>. I can’t seem to use as pulumi.Output<string>[] on this, so what’s the best practice in keeping the type consistent when using StackReference outputs?bored-oyster-3147
11/24/2021, 10:57 PMmost-lighter-95902
11/24/2021, 10:59 PMpulumi.Output<string>[] not an output of a string array?most-lighter-95902
11/24/2021, 11:00 PMStackReference.getOutput seems to output pulumi.Output<any> - am I wrong?bored-oyster-3147
11/24/2021, 11:03 PMpulumi.Output<string>[] is an array of string outputs. pulumi.Output<string[]> would be an output of string array. See the difference?most-lighter-95902
11/24/2021, 11:21 PMmost-lighter-95902
11/25/2021, 4:08 AMStackReference and the stack doesn’t exist yet, it throws an error and I’m not sure what the best way would be to handle itbored-oyster-3147
11/25/2021, 4:43 AMmost-lighter-95902
11/25/2021, 4:57 AMmost-lighter-95902
11/25/2021, 4:58 AMnew pulumi.StackReference in the same program right? You can only instantiate it once?crooked-pillow-11944
11/25/2021, 1:36 PMmost-lighter-95902
11/26/2021, 3:48 AMmost-lighter-95902
12/02/2021, 12:48 AMnew StackReference more than once:most-lighter-95902
12/02/2021, 12:48 AMerror: resource 'urn:pulumi:app-staging::ckc-test::pulumi:pulumi:StackReference::seunggs/ckc-test/app-build' registered twice (read and read)most-lighter-95902
12/02/2021, 12:48 AMbored-oyster-3147
12/04/2021, 4:15 AM