Pulumi C#: доступ к имени стека перед RunAsyncC#

Место общения программистов C#
Anonymous
Pulumi C#: доступ к имени стека перед RunAsync

Сообщение Anonymous »


Is there a way with Pulumi to access the current stack name in order to chose which class to run when doing pulumi up?

I want to do something like that:
static Task Main() { if (Deployment.Instance.StackName.StartsWith("local-")) return Deployment.RunAsync(); return Deployment.RunAsync(); }

Источник: https://stackoverflow.com/questions/607 ... e-runasync

Вернуться в «C#»