thousands-area-40147
09/05/2022, 2:57 PMnew StackReference()
for it? Asking because the error StackReference()
throws if the stack doesn't exist seems to be uncatchable. This is for Typescript btw, so maybe I should've asked it in #typescript instead 😅victorious-church-57397
09/05/2022, 3:04 PMCommand
resource to run pulumi stack ls
and then you could check in the output of that if the stack existsthousands-area-40147
09/05/2022, 3:05 PMvictorious-church-57397
09/05/2022, 3:06 PMthousands-area-40147
09/05/2022, 3:08 PMvictorious-church-57397
09/05/2022, 3:08 PMThe Pulumi Automation API is a programmatic interface for running Pulumi programs without the Pulumi CLI. Conceptually, this can be thought of as encapsulating the functionality of the CLI (pulumi up, pulumi preview, pulumi destroy, pulumi stack init, etc.) but with more flexibility. It is a strongly typed and safe way to use Pulumi in embedded contexts such as web servers without having to shell out to a CLI.
limited-rainbow-51650
09/06/2022, 6:29 AM