https://pulumi.com logo
Title
k

kind-park-18928

05/29/2020, 6:49 AM
Just curious if a pulumi stack should have 1:1 or 1:many relationship with an azure subscription? I have two separate azure subscriptions; one for testing and the other for production. FWIW: Maintaining two separate stacks seems a bit cumbersome since I must remember to: 1. Switch the stack while targeting production AND 2. Switch the subscription ID (via AZ CLI or environment variable or pulumi config). Thoughts?
t

tall-librarian-49374

05/29/2020, 7:01 AM
You probably don’t want to deploy both to testing and production at the same time from the same stack, so you need two stacks.
pulumi config
is stack-specific, so I’m not sure why you’d need to run it every time you switch.
A common scenario is that developers interact with testing, while production is deployed from CI/CD, so there’s no need to actually switch back and forth.
k

kind-park-18928

05/29/2020, 7:02 AM
Thanks, that makes sense.