creamy-guitar-8902
11/06/2024, 8:59 PMpulumi logout
-
error: getwd: no such file or directory
I'm also getting warnings when running pulumi about
-
warning: Failed to read project: getwd: no such file or directory
warning: Failed to get information about the current stack: getwd: no such file or directory
Any idea what might be going on?
If there's a more appropriate channel for this, let me know!little-cartoon-10569
11/06/2024, 9:31 PMcreamy-guitar-8902
11/06/2024, 9:31 PMcreamy-guitar-8902
11/06/2024, 9:32 PM~/.pulumi/
folderlittle-cartoon-10569
11/06/2024, 9:32 PM--local
then your stacks are stored in ~/.pulumilittle-cartoon-10569
11/06/2024, 9:33 PMcreamy-guitar-8902
11/06/2024, 9:33 PMlogin file:///home/joshua/my_pulumi_state_folder/
little-cartoon-10569
11/06/2024, 9:34 PMcreamy-guitar-8902
11/06/2024, 9:35 PMlittle-cartoon-10569
11/06/2024, 9:37 PMcreamy-guitar-8902
11/06/2024, 9:37 PMlittle-cartoon-10569
11/06/2024, 9:39 PMpulumi stack ls
) and the saved creds for your cloud backend. And your plugins. But you can recover from all of those things with very little effort.little-cartoon-10569
11/06/2024, 9:39 PMcreamy-guitar-8902
11/06/2024, 9:40 PM.pulumi/
folder inside the folder I log into.creamy-guitar-8902
11/06/2024, 9:41 PM.pulumi/
directory is, of course, empty)little-cartoon-10569
11/06/2024, 9:41 PMlittle-cartoon-10569
11/06/2024, 9:41 PMlittle-cartoon-10569
11/06/2024, 9:42 PMlittle-cartoon-10569
11/06/2024, 9:44 PMcreamy-guitar-8902
11/06/2024, 9:44 PMlittle-cartoon-10569
11/06/2024, 9:45 PMpulumi stack ls
?creamy-guitar-8902
11/06/2024, 9:45 PMcreamy-guitar-8902
11/06/2024, 9:45 PMcreamy-guitar-8902
11/06/2024, 9:45 PMlittle-cartoon-10569
11/06/2024, 9:45 PMcreamy-guitar-8902
11/06/2024, 9:45 PMlittle-cartoon-10569
11/06/2024, 9:45 PMcreamy-guitar-8902
11/06/2024, 9:46 PMlittle-cartoon-10569
11/06/2024, 9:47 PM--cwd
parameter needs to be a directory with a Pulumi.yaml file.creamy-guitar-8902
11/06/2024, 9:49 PMlittle-cartoon-10569
11/06/2024, 9:53 PMpulumi login --local
), then your state is also stored in ~/.pulumi. And it's nowhere else. So you can lose that state.creamy-guitar-8902
11/06/2024, 9:54 PMlogin --local
creamy-guitar-8902
11/06/2024, 9:54 PMcreamy-guitar-8902
11/06/2024, 9:54 PMlittle-cartoon-10569
11/06/2024, 9:56 PMfile://
is the least-good storage for that, but it will work. Pulumi even does locking correctly, so if one person is running pulumi up
and writing to the state files, then another person can run pulumi up
and it'll wait intelligently until the state is safe to read.little-cartoon-10569
11/06/2024, 9:56 PMcreamy-guitar-8902
11/06/2024, 9:56 PMlittle-cartoon-10569
11/06/2024, 9:57 PMcreamy-guitar-8902
11/06/2024, 9:58 PMlittle-cartoon-10569
11/06/2024, 10:02 PMcreamy-guitar-8902
11/06/2024, 10:03 PM