Google Cloud Storage

Setting Up Google Cloud Storage

Under your Google Cloud Storage dashboard, click on Buckets -> Create.

Give it a name, and leave all the other options as the default. You'll also need to uncheck "Enforce Public Access Prevention On This Bucket"

Once the bucket is created, it's a good idea to create a folder within the bucket to keep things better organized, especially if you have multiple pods.

Transferring Data from RunPod

Under your pod screen in RunPod, click on Cloud Sync -> Google Cloud Storage -> Copy to Google Cloud Storage.

On this screen, you'll need to provide your Service Account JSON key. If you're not familiar with how to create a Service Account Key, refer to this article for assistance. In the first field, you will need to copy and paste the entire contents of your Service Account JSON key (even though it looks like a small field, you really do need to paste the entire file's contents in it. It will work!)

Then, specify the destination path in your bucket, along with the folder from your pod that you wish to copy.

If everything is set up, you'll see CloudSync push your workspace over to the bucket. Success!

Note: If your bucket is not publicly viewable, you'll get the following error: "2023-04-18 20:22:00 ERROR : GCS bucket myrunpodbucket path myrunpodfolder: error reading destination root directory: googleapi: Error 403: [email protected] does not have storage.objects.list access to the Google Cloud Storage bucket. Permission 'storage.objects.list' denied on resource (or it may not exist)., forbidden." In that case, make the bucket publicly viewable as described here.