Skip to content

Get or Create Bucket ​

Retrieves an existing Google Cloud Storage bucket by name, or creates it if it does not exist.

Purpose ​

Use this task to ensure a Google Cloud Storage bucket is available before performing file operations. If the named bucket already exists it is returned without modification; if it does not exist the task creates it in the specified project. This task requires a Google Cloud Platform third-party account to be configured. Output variables expose the bucket details for use in downstream tasks such as Add File to Bucket.

Inputs ​

FieldTypeRequiredDescription
Project IdTextYesThe Google Cloud project ID in which the bucket should be located or created.
Bucket NameTextYesThe name of the bucket to retrieve or create. Must comply with GCP bucket naming rules.

Outputs ​

NameDescription
Bucket NameThe name of the bucket that was retrieved or created.
Bucket IDThe unique identifier of the bucket.
Project IDThe Google Cloud project ID associated with the bucket.
LocationThe geographic location of the bucket.
Storage ClassThe storage class of the bucket (for example, STANDARD).
GCS URIThe root GCS URI of the bucket, in the format gs://bucketname/.

Tentech