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<int> Main()
{
if (Deployment.Instance.StackName.StartsWith("local-"))
return Deployment.RunAsync<LocalStack>();
return Deployment.RunAsync<AzureStack>();
}