sparse-intern-71089
02/03/2022, 9:57 PMlittle-cartoon-10569
02/03/2022, 10:07 PMechoing-dinner-19531
02/03/2022, 10:07 PMbored-table-20691
02/03/2022, 10:30 PMbored-table-20691
02/03/2022, 10:31 PMinfra
stacks are more like independent cells, so they share nothing with each other. I’m just thinking what I should do now to make the future easier in terms of manageability, CI/CD, permissions.
Changing this stuff tends to be painful 🙂little-cartoon-10569
02/03/2022, 10:32 PMbored-table-20691
02/03/2022, 10:33 PMbored-table-20691
02/03/2022, 10:35 PMinfra-dev-project/
dev-stack1.yaml
dev-stack2.yaml
...
infra-staging-project/
...
infra-produ-project/
...
or
infra-project/
dev-stack1.yaml
staging-stack1.yaml
...
Then if an operation I wanted to do was something like “update all staging stacks”, the logic would be quite different between the two options.little-cartoon-10569
02/03/2022, 10:37 PMlittle-cartoon-10569
02/03/2022, 10:38 PMbored-table-20691
02/03/2022, 10:41 PMgit
branches seem like not a good fit, especially for trunk-based development.
An example operation is “I want to update all the production infra stacks” - that now involves me somehow deciding from the stack what is a production one and what isn’t, as opposed to just listing all the stacks in the infra-prod
project. I can of course add some custom config or use naming convention for this, but it does add complexity.little-cartoon-10569
02/03/2022, 10:51 PMbored-table-20691
02/03/2022, 10:52 PMbored-oyster-3147
02/03/2022, 11:00 PMbored-table-20691
02/03/2022, 11:06 PMbored-oyster-3147
02/03/2022, 11:09 PM/infra
while your pulumi state backend could reflect /infra-{env}
- so you could simulataneously have no code duplication in your repository and split your environments into different pulumi projects from the perspective of the statebored-oyster-3147
02/03/2022, 11:10 PMbored-table-20691
02/03/2022, 11:10 PMpulumi up
and so on, to make it easier to do iterative dev work on the stack itself.bored-table-20691
02/03/2022, 11:10 PM