
Copy
Copy a file between bucket
Copy a file between bucket
Copy a file between bucket
Copy the file between Google Cloud Storage buckets
type: "io.kestra.plugin.gcp.gcs.Copy"Examples
Move a file between bucket path
id: gcp_gcs_copy
namespace: company.team
inputs:
- id: file
type: FILE
tasks:
- id: copy
type: io.kestra.plugin.gcp.gcs.Copy
from: "{{ inputs.file }}"
delete: true
Properties
deletebooleanstring
falseWhether to delete the source files (from parameter) on success copy
fromstring
The file to copy
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
uriThe destination full uri
The full url will be like gs://{bucket}/{path}/{file}
Metrics
file.sizecounter
bytesSize of the copied file.