For storing state file of my pulumi stack I am usi...
# general
s
For storing state file of my pulumi stack I am using s3 bucket. Should I use single s3 bucket for all stacks/env? or should I create 3 different buckets for state file of 3 different stacks? Which is better/preferred? Our aim it to keep state file of different env as isolated as possible. Please suggest.
l
Now that you can get Pulumi to lock state during deployments, it is best to use one URL for all projects that are able to access each other via StackReference.
There is a risk of collision when two projects share a single unlocked backend (S3 bucket URL), but that's mitigated by Pulumi's locking.
And you cannot use StackReferences between projects with different backend URLs.
s
thanks @little-cartoon-10569, We have decided to go with different bucket for different stack/env