Upload a file to a GCS bucket.
yaml
type: "io.kestra.plugin.gcp.gcs.Upload"
Examples
Uploada FILE input to GCS
yaml
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
yaml
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
cacheControl string
The blob's data cache control.
contentDisposition string
The blob's data content disposition.
contentEncoding string
The blob's data content encoding.
contentType string
The blob's data content type.
from string
The file to copy
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}
.
impersonatedServiceAccount string
The GCP service account to impersonate.
projectId string
The GCP project ID.
scopes array
SubType string
Default
["https://www.googleapis.com/auth/cloud-platform"]
The GCP scopes to be used.
serviceAccount string
The GCP service account.
to string
The destination path
Outputs
uri string
Format
uri