https://pulumi.com logo
#getting-started
Title
# getting-started
g

glamorous-glass-45224

02/03/2022, 5:29 AM
Can you have different stacks supported by different backends? e.g. Dev / Staging / Prod uses Pulumi Service, but Local uses
file:///somewhere/
?
c

clever-sunset-76585

02/03/2022, 5:37 AM
Yes you could. That requires you to
pulumi login <backendUrl>
before you create the stack using
pulumi stack init
.
g

glamorous-glass-45224

02/03/2022, 5:38 AM
Sweet! Thanks!
c

clever-sunset-76585

02/03/2022, 5:39 AM
Once the stacks are created you must switch accounts using
pulumi login ...
each time you want to work with the respective stacks. It's a bit of a pain but it should work
g

glamorous-glass-45224

02/03/2022, 5:39 AM
That's fine! Thank you so much 😄
c

clever-sunset-76585

02/03/2022, 5:39 AM
I am curious, though. What's the reason for wanting to do that if you don't mind answering? Feel free to DM me
3 Views