Google Cloud Storage node
Hm... I have a question regarding the Google Cloud Storage nodes: I am creating a text file in a subfolder (mainly to create the folder for later), but I also want to make this file public accessible. The "Upload External..." nodes, who work perfectly, reference the bucket with "process.env.BUCKET", but it looks like I can't use this. Okay, using the bucket ID from the project preferences, I get the error "no such object", however, the file creation node finished successful? 🤔
3 Replies
cc @Bhavya ✨
Hey @HeikoK, you can use the Upload File from External URL node for any Bucket ID. The
process.env.BUCKET
value you see here is set by default. The purpose of setting this value by default is that even if you do not provide an external Bucket ID, you'll still be able to move forward with the image getting stored in the GCP Project associated with your BuildShip Project.
One quick thing to note: To connect your own account to the Google Cloud Storage nodes, you'd have to grant specific permissions to the BuildShip Runtime Service Account mentioned here.Storing Files using GCP File Storage – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Thanks @Bhavya ✨, I am using the Upload File nodes already and they work, however, I want to use the "Create file" node to write some information into a text file, and make this just created file accessible to the the client. I use the same path I used for creation and tried the both known options for the bucket ID, but get the "object not found" error. Note that the Generate Public Download Url node has no default bucket set, and I can't use the
process.env.BUCKET
here (perhaps I am just adding it the wrong way?