
Google Cloud Copy
CertifiedCopy an object between GCS buckets
Google Cloud Copy
Certified
Copy an object between GCS buckets
Copies an object to a destination path; optionally deletes the source after a successful copy.
yaml
type: io.kestra.plugin.gcp.gcs.CopyExamples
Move a file between bucket path
yaml
id: gcp_gcs_copy
namespace: company.team
tasks:
- id: copy
type: io.kestra.plugin.gcp.gcs.Copy
from: "gs://my_bucket/dir/file.csv"
to: "gs://my_bucket/archive/file.csv"
delete: true
Properties
delete booleanstring
Default
falseDelete source on success
If true, removes the source object after a successful copy; default false
from string
Source object URI
Fully qualified gs:// path to copy from
impersonatedServiceAccount string
The GCP service account to impersonate
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
projectId string
The GCP project ID
scopes array
SubTypestring
Default
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used
serviceAccount string
The GCP service account
to string
Destination object URI
Fully qualified gs:// path to copy to
Outputs
uri string
Format
uriDestination URI
Final gs:// URI of the copied object
Metrics
file.size counter
Unit
bytesSize of the copied file.