With https://github.com/pulumi/pulumi/pull/3852, a new flag was added to support exactly the thing we want with #34. So once that is available, using that as the first-class way in the code to create the non-existent stack and falling back to the manual way for older versions of the CLI would be the best.
With https://github.com/pulumi/pulumi/pull/3852, a new flag was added to support exactly the thing we want with #34. So once that is available, using that as the first-class way in the code to create the non-existent stack and falling back to the manual way for older versions of the CLI would be the best.