Is it possible to set default pulumi organization ...
# general
g
Is it possible to set default pulumi organization for projects? I have a problem that when I create a new stack it's created under my user namespace instead of the org namespace. This happens to me quite often because I naturally go into the directory of "org" and run
stack init
b
When you create it, you can specificy the org namespace pulumi stack init <org>/<stack>
g
yes, that is exactly the problem. I just want to write a stack name
p
@great-sunset-355 Have you checked:
pulumi org set-default
?
g
ugh, no! thanks will take a look
Hmm that does sets this for the "backend" which is a problem because I work for 2 different organizations that use pulumi service backend when I'm in the context of
orgA
and run
pulumi org set-default orgA
. Then within the context of
orgB
->
pulumi org get-default
returns
orgB
.
that's way worse than just moving it from my personal space IMO
q
This isn't currently possible, but would be a useful addition to the CLI. I think parsing
PULUMI_ORG
environment variable via envrc would help make thiseasier. Could you open an issue, please?
g
will do
@quiet-wolf-18467 There seem to be several existing linked issues, could you please take a look? So we do not need to open another one. https://github.com/pulumi/pulumi/issues/4826 https://github.com/pulumi/pulumi/pull/8352 https://github.com/pulumi/pulumi/issues/3747
q
I'll speak to some people and find out the current situation
g
🙏