It might be a stupid question, but how do you pass...
# dotnet
m
It might be a stupid question, but how do you pass GetClientConfig in your stack ? I used to have everything in Program.cs before Pulumi 2.0. Now I have seen that in all the samples the infrastructure is defined in the constructors of classes that inherit from Stack. However I can't call InvokeAsync from GetClientConfig in constructors and if I call it in my Main method of Program.cs I don't know how to pass it to the stack constructor. Any idea how to do that ? It seems pretty basic but I can't find how to handle this.
a
Output.Create(GetClientConfig.InvokeAsync())
AFAIK. You can also do async things within an
Apply
.
👍 1