late-airplane-27955
10/23/2024, 7:19 PMvar 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 melate-airplane-27955
10/23/2024, 7:22 PMcluster.Name
seems to be an Output
, while when using GetManagedCluster
, the entire response is an Output
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by