Skip to content

Add File to Bucket ​

Uploads a local file to a Google Cloud Storage bucket.

Purpose ​

Use this task to transfer a file from the automation server's local file system into a specified Google Cloud Storage bucket. If the file already exists in the bucket, the Replace setting controls whether it is overwritten or the task is stopped. This task requires a Google Cloud Platform third-party account to be configured. Output variables confirm the uploaded object's name, bucket, and GCS URI for use in downstream tasks.

Inputs ​

FieldTypeRequiredDescription
Bucket NameTextYesThe name of the destination Google Cloud Storage bucket.
Local Full PathTextYesThe absolute local path of the file to upload.
ReplaceDropdownYesWhether to overwrite the file if it already exists in the bucket. Options: true, false. Defaults to false.

Outputs ​

NameDescription
Bucket NameThe name of the bucket the file was uploaded to.
Object NameThe file name used as the object name in the bucket, derived from the local file path.
GCS URIThe full Google Cloud Storage URI of the uploaded object, in the format gs://bucket/objectname.
Local PathThe original local file path that was uploaded.

Tentech