https://pulumi.com logo
#general
Title
# general
g

great-sunset-355

02/07/2022, 7:41 AM
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

billions-judge-9412

02/07/2022, 9:03 AM
When you create it, you can specificy the org namespace pulumi stack init <org>/<stack>
g

great-sunset-355

02/07/2022, 10:52 AM
yes, that is exactly the problem. I just want to write a stack name
p

prehistoric-activity-61023

02/07/2022, 11:13 AM
@great-sunset-355 Have you checked:
pulumi org set-default
?
g

great-sunset-355

02/07/2022, 11:16 AM
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

quiet-wolf-18467

02/07/2022, 2:09 PM
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

great-sunset-355

02/10/2022, 9:41 AM
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

quiet-wolf-18467

02/10/2022, 9:52 AM
I'll speak to some people and find out the current situation
g

great-sunset-355

02/10/2022, 9:55 AM
🙏
2 Views