this is the thing that confuses me the most with P...
# general
l
this is the thing that confuses me the most with Pulumi:
Copy code
var cluster = new ManagedCluster($"{clusterName}-", new ManagedClusterArgs
        {//lots of code})
        var lookupManagedCluster = GetManagedCluster.Invoke(new GetManagedClusterInvokeArgs
        {
            ResourceGroupName = rgName,
            ResourceName = cluster.Name
        });

        var lookup2 = GetManagedCluster.Invoke(new GetManagedClusterInvokeArgs
        {
            ResourceName = lookupManagedCluster.Apply(c => c.Name),
            ResourceGroupName = rgName,
        });
why would I not be able to just pipe the lookupManagedCluster into the lookup2 here? Why does Pulumi think that's an invalid thing, when
cluster.Name
is also just an output? I've read the input/output documentation 100 times, but this is still very confusing to me
hm to answer myself:
cluster.Name
seems to be an
Output
, while when using
GetManagedCluster
, the entire response is an
Output