. Thing is, I have 3 files in there; but way more projects than that. And I see at least one file in there that is tied to a project that I just deleted. So:
• what are these files for and are they actually used?
• can they be deleted safely?
l
little-cartoon-10569
04/10/2024, 4:30 AM
Yes, they're caches. If you went to a new machine, cloned and deployed an existing project, that directory would start off empty, and files would be created automatically by Pulumi during the process.
little-cartoon-10569
04/10/2024, 4:31 AM
If you delete files that are still in use then you may have to do something to "fix" that. For example, if you delete credentials.json, you'll need to
pulumi login
again. But you don't ever need to keep those files.
r
rhythmic-branch-12845
04/10/2024, 5:38 AM
sure.
credentials.json
is obvious. I am specifically asking about the files in
.pulumi/workspaces/
rhythmic-branch-12845
04/10/2024, 5:39 AM
... and yes, thank you for answering. You said they're caches? so that's good. Does this mean though that maintenance and clearance of the files in
~/.pulumi/workspaces
is up to me?
l
little-cartoon-10569
04/10/2024, 7:45 PM
I don't know about that. The files in there are small enough that I never think about them. I've added ~/.pulumi to all my caches on my various pipelines (Bitbucket, GitHub, etc.), then I just forget about them.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.