https://pulumi.com logo
#dotnet
Title
m

millions-journalist-34868

05/11/2020, 12:06 PM
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

adventurous-garage-59192

05/11/2020, 2:45 PM
Output.Create(GetClientConfig.InvokeAsync())
AFAIK. You can also do async things within an
Apply
.
👍 1