https://pulumi.com logo
#general
Title
# general
b

busy-magazine-6225

09/06/2022, 5:59 PM
I have a lot of different pulumi applications (and github repositories, one per app) that are scoped to various things like networking, kubernetes, monitoring, etc. I want a single place to execute all the stacks in order. I was thinking of building a script to do this, but I was curious if anyone has created a better solution. I'm working through github actions to deploy pulumi, so I don't think I can just tie those actions together to execute each other.
v

victorious-church-57397

09/06/2022, 6:09 PM
you could do it in one github action, you can use the
actions/checkout
to check out the various repos and then run
pulumi up -s stack_name
, thats probably the best way i could think of doing that, and each step uses
needs: other_stack
in the job definition, would be a horrifically large workflow file though 😄
b

busy-magazine-6225

09/06/2022, 6:24 PM
Good call! Thanks.
v

victorious-church-57397

09/06/2022, 6:36 PM
providing all your stacks are in the same backend bucket of course! hope you figure it out 🙂
b

busy-magazine-6225

09/06/2022, 6:37 PM
Yeah we are using pulumi's offering for state management, so no worries there
v

victorious-church-57397

09/06/2022, 6:37 PM
ah ok cool, should be pretty straight forward to implement then 🙂 just a lot of repetition potentially!
b

busy-magazine-6225

09/06/2022, 6:39 PM
Yeah, it isn't an ideal situation and I'll definitely keep exploring how others have handled multi-repo pulumi orchestration, but it should work for a short term ugly solution
v

victorious-church-57397

09/06/2022, 6:40 PM
i wonder if you could make use of the gh api by triggering workflow runs in other repos instead?
i suppose another alternative could be to use the automation api inside a program that runs in github actions? or using the pulumi service api potentially
b

busy-magazine-6225

09/06/2022, 6:47 PM
That automation API seems like the best fit here honestly
I'll look into that more, this is super helpful, thank you
v

victorious-church-57397

09/06/2022, 6:49 PM
no worries man 🙂 hope you get it sorted
b

busy-magazine-6225

09/06/2022, 6:50 PM
If I do build anything I'll make sure it's open source and send you a link 🙂
v

victorious-church-57397

09/06/2022, 6:52 PM
nice one! i think the most challenging part will be building the logic for the dependency DAG, but once youve nailed that should be up and away!