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

nutritious-judge-27316

01/20/2020, 2:12 PM
When doing development with Pulumi, How many state files do you have? One for Local and One for CI/CD? Or create the stacks on local PC for all CICD Pipeline in backend state file?
w

white-balloon-205

01/20/2020, 7:30 PM
The stacks (state files) are 1:1 with environments - so the real question is how many environments do you want for your deployment. If you want devs to be able to spin up the it own environments for developing new features, they can each have their own stack that they manage locally, and then your production (and possibly staging) environments can be managed by CI. A little more on related topics: https://www.pulumi.com/docs/intro/concepts/organizing-stacks-projects/
n

nutritious-judge-27316

01/20/2020, 8:38 PM
So create stacks before going into CI? or during CI process?
w

white-balloon-205

01/20/2020, 11:16 PM
You can create before.