is there a way to programmatically get all stacks ...
# general
b
is there a way to programmatically get all stacks in a project/account? use case: i'm replicating "prod" across several regions, and I want to create some origin groups for failover in the CDN, and it would be nice to simply aggregate all deployed replications
b
You could shell out and do
pulumi stack ls
😄
b
oof.... i guess 😞
e
for login: https://api.pulumi.com/api/console/email/login with payload
{emailOrLogin: "plaintext", password: "plaintext"}
(with post)
👍 1
g
We've not yet publicly documented the API, but it is "stable" as the Pulumi CLI uses it heavily. Here's how to list stacks - https://gist.github.com/clstokes/9f7f64f59bea289ea92687b98748d5ae#list-stacks.
👍 1