
Google Cloud Storage (GCS) Copy
CertifiedCopy an object between GCS buckets
Google Cloud Storage (GCS) Copy
Copy an object between GCS buckets
Copies an object to a destination path; optionally deletes the source after a successful copy.
type: io.kestra.plugin.gcp.gcs.CopyExamples
Move a file between bucket path
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
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150delete booleanstring
falseDelete source on success
If true, removes the source object after a successful copy; default false
from string
Source object URI
Fully qualified gs:// URI or an internal storage URI. Special characters and partition brackets are automatically percent-encoded if unencoded.
impersonatedServiceAccount string
The GCP service account to impersonate
projectId string
The GCP project ID
scopes array
["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
uriDestination URI
Final gs:// URI of the copied object
Metrics
file.size counter
bytesSize of the copied file.