Running pulumi up fails with:
error: unable to open bucket file:///var/folders/mz/path_to_dir: stat /var/folders/mz/path_to_dir: no such file or directory
error: unable to open bucket file:///var/folders/mz/path_to_another_dir: stat /var/folders/mz/path_to_another_dir: no such file or directory
Checking the file system shows that /var/folders/mz/path_to_dir and /var/folders/mz/path_to_another_dir exist and have the correct owner and permissions setup.
It turned out that the issue was with a corrupted
~/.pulumi/credentials.jsonfile.Valid
credentials.jsonfile has the following structure:In my case the file content was:
Fixing the
credentials.jsonfile to its expected structure fixed the issue.