https://pulumi.com logo
b

bitter-dentist-28132

03/02/2020, 4:31 PM
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

brave-caravan-6336

03/02/2020, 4:31 PM
You could shell out and do
pulumi stack ls
😄
b

bitter-dentist-28132

03/02/2020, 4:32 PM
oof.... i guess 😞
e

echoing-breakfast-73834

03/02/2020, 4:33 PM
for login: https://api.pulumi.com/api/console/email/login with payload
{emailOrLogin: "plaintext", password: "plaintext"}
(with post)
👍 1
g

gentle-diamond-70147

03/02/2020, 4:46 PM
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
7 Views