upload
Upload a file to a GCS bucket.
Upload a file to a GCS bucket.
Upload a file to a GCS bucket.
type: "io.kestra.plugin.gcp.gcs.upload"Examples
Uploada FILE input to GCS
id: gcp_gcs_upload
namespace: company.team
inputs:
- id: file
type: FILE
tasks:
- id: upload
type: io.kestra.plugin.gcp.gcs.Upload
from: "{{ inputs.file }}"
to: "gs://my_bucket/dir/file.csv"
Download data and upload to Google Cloud Storage
id: load_to_cloud_storage
namespace: company.team
tasks:
- id: data
type: io.kestra.plugin.core.http.Download
uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv
- id: cloud_storage
type: io.kestra.plugin.gcp.gcs.Upload
from: "{{ outputs.data.uri }}"
to: gs://kestra-demo/data.csv
Properties
cacheControlstring
The blob's data cache control.
contentDispositionstring
The blob's data content disposition.
contentEncodingstring
The blob's data content encoding.
contentTypestring
The blob's data content type.
fromstring
The file to copy
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}.
impersonatedServiceAccountstring
The GCP service account to impersonate.
projectIdstring
The GCP project ID.
scopesarray
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used.
serviceAccountstring
The GCP service account.
tostring
The destination path
Outputs
uristring
uriMetrics
file.sizecounter
bytesSize of the uploaded file.