https://pulumi.com logo
Title
f

few-carpenter-12885

10/19/2022, 3:30 PM
Hello, I'm making use of the Automation API to spin up some infrastructure. However, this process takes ~5-10 mins because of the resources being created/modified. Is there a recommended way to report some sort of progress of the stack being spun up? Would hitting the Pulumi REST API to get the stack and resource statuses be a good way to do that?
b

billowy-army-68599

10/19/2022, 3:57 PM
are you looking for the overall process of the stack, or the progress of the cloud resources?
f

few-carpenter-12885

10/19/2022, 3:59 PM
Hmm, ideally I'd want to represent progress with some sort of progress bar. Probably just seeing the status of each resource would be sufficient. ie. "8/10 resources complete"
I could weight some of the more time-intensive resources accordingly if needed.
b

billowy-army-68599

10/19/2022, 4:20 PM
you could totally build that, I have an example at github.com/jaxxstorm/connectme
f

few-carpenter-12885

10/19/2022, 7:00 PM
Thanks, I'll take a look 👍