This message was deleted.
s
This message was deleted.
a
it needs to be in format org/project/stackname afaik
Copy code
new StackReference("infraRef", { name: `myorg/${pulumi.getProject()}/infra` })
depends on where your state is (app.pulumi or local/s3)
b
i have pulumi login file://
a
then org is empty for you I guess
Copy code
new StackReference("infraRef", { name: `${pulumi.getProject()}/infra` })
b
is this a recent thing? this used to work - but i set it up a while ago and i can't remember if i did something else to make it work
a
I think it was changed in one of major releases
2.smth
b
hmmm - still not working - i must be missing something]
if i
pulumi stack ls
in my services folder i don't see the infra project - am i doing this wrong?
so my directory structure is this: / infra • index.js • Pulumi.yaml • Pulumi.infra.yaml /services • index.js • Pulumi.yaml • Pulumi.services.yaml should I have the Pulumi.yaml at the level above these directories so they are in the same project?
also - looking at another machine where I have this stuff running if I do pulumi stack ls I get this:
Copy code
NAME       LAST UPDATE  RESOURCE COUNT
infra      1 week ago   34
services*  1 week ago   75
warning: A new version of Pulumi is available. To upgrade from version '2.4.0' to '2.7.1', run
it's exactly the same code - I just set it up a while ago
b
@bland-cat-29878 did you Pulumi login on the new machine? Where are you storing your state?
b
I'm not sure if this is going to help, but I had a situation a while ago where I was using "file://" and the problem was that things weren't where I thought they were. This is a bootstrap project where I want the state files to be in git, BTW. Turns out I needed to be more explicit where the files were:
Copy code
$ cat Pulumi.yaml
...
backend:
  url: file://.
Otherwise they would go into ~/.pulumi.
👍 1
a
you must have state and see outputs of infra stack on this machine
👍 2
b
YES that's it! I (stupidly) logged in using the command from memory
pulumi login file://
which is not correct. Thank you guys