Skip to content

Google Get Create Bucket

The Google Get Create Bucket node is used to retrieve an existing Google Cloud Storage bucket by name, or create it if it does not already exist. This ensures that your Google Cloud workflow has access to a valid storage bucket for subsequent file or data operations.


Purpose

This node is commonly used in automations where storage needs to be validated or provisioned before performing actions such as uploading files, reading from cloud storage, or maintaining backups in Google Cloud Platform (GCP).


Input Fields

LabelTypeRequiredDescription
Project IdtextThe GCP Project ID in which the bucket should be located or created.
Bucket NametextThe name of the bucket to retrieve or create. Must meet GCP naming rules.

Output

No direct output variable is returned to the workflow, but the node sets the status and message indicating whether the bucket was found or created successfully.


Success Criteria

  • The node returns Completed with the message:
    "Got or Created Google Bucket Success"

Failure Scenarios

ConditionStatusMessage
Missing required inputs (Project Id, Bucket Name)FailReturned by validation
Failed to retrieve a service account tokenFail(GoogleGetCreateBucket) - Failed to get service
Failed to create the bucket after retrieval attempt failedFail(GoogleGetCreateBucket) - Failed to Create bucket
Exception thrown during processFail(GoogleGetCreateBucket) - Google Failure: ...

Example Use Cases

  • Ensure a GCP bucket exists before uploading logs or exports.
  • Automatically provision environment-specific buckets during deployment workflows.
  • Use as a prerequisite node for cloud file operations (e.g., GoogleAddFileToBucket).

Notes

  • This node uses service account credentials labeled "Google Cloud Platform", which must be pre-configured and accessible by the automation runtime.
  • Bucket names must be globally unique across GCP.
  • No visible output is exposed to the user; success or failure is handled internally for flow control.

Tentech 2024