Is this the recommend way to combine a stack outpu...
# dotnet
a
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
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