able-camera-57198
11/02/2021, 5:47 PMGet*
methods:
var defaultNetwork = GetNetwork.InvokeAsync(new()
{
Network = "default",
});
⢠Am I supposed to await this? If so, how do I do so when Pulumi stacks all appear to be in constructors?
⢠Is there any way to wrap my use of GetNetwork
with some equivalent to DependsOn
?
Here's the equivalent that I'm currently doing in Terraform:
data "google_compute_network" "default" {
depends_on = [
google_project_service.compute,
]
name = "default"
}
tall-librarian-49374
11/02/2021, 6:18 PMvar defaultNetwork = Output.Create(GetNetwork.InvokeAsync(new()
{
Network = "default",
}));
We are working on a new option GetNetwork.Invoke
that does so automatically.able-camera-57198
11/02/2021, 6:28 PMtall-librarian-49374
11/02/2021, 7:44 PMable-camera-57198
11/02/2021, 10:31 PM