https://pulumi.com logo
#dotnet
Title
# dotnet
a

adventurous-garage-59192

09/08/2020, 2:50 AM
Is this the recommend way to combine a stack output with an invoke? Stack outputs are still a tad clunky by only outputting as
object
and invoke args don't accept
Output<T>
.
Copy code
var globalKv = Output
            .Tuple(cloudInfra.RequireOutput("").Apply(x => (string) x), cloudInfra.RequireOutput("").Apply(x => (string) x))
            .Apply(tuple => 
                    GetKeyVault.InvokeAsync(new GetKeyVaultArgs
                        {
                            Name = tuple.Item1,
                            ResourceGroupName = tuple.Item2
                        }
                ));
t

tall-librarian-49374

09/08/2020, 5:48 AM
Yes, I think that’s the current way to do so. I realise we don’t have an issue to track improvements in stack reference API, even though we do get questions regularly. Mind opening one?
👍 1