Pulumi C#: доступ к имени стека перед RunAsync ⇐ C#
Pulumi C#: доступ к имени стека перед RunAsync
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
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
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение