sparse-intern-71089
07/31/2019, 5:01 AMwhite-balloon-205
Unfortunately, I get merge conflicts in my state file.You do not check in your state file. That is managed by app.pulumi.com by default, or you can manage it in cloud storage directly. app.pulumi.com additionally offers robust concurrency control around modifications, so only one of you can be changing the stack at a time.
We both develop against the localcopies of the stack file we have on our branches The most common approach here would be to create a fresh stack from the same project with your feature branch testing, and develop in that. Then, when you open a PR against your shared branch (
master
), have either CI/CD or a manual process do an update of the shared stack associated with that branch (production
).
As a general rule, thinking of stacks as roughly 1:1 with "long lived branches" is a good starting point.
There's some notes on this topic at https://www.pulumi.com/docs/reference/cd/#using-branches-for-environments that may be helpful.
Also https://www.pulumi.com/docs/reference/organizing-stacks-projects/.better-rainbow-14549
07/31/2019, 10:15 AM