Copy a file between bucket
Copy the file between Google Cloud Storage buckets
yaml
type: "io.kestra.plugin.gcp.gcs.Copy"
Examples
Move a file between bucket path
yaml
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
delete booleanstring
Default
false
Whether to delete the source files (from parameter) on success copy
from string
The file to copy
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
The destination full uri
The full url will be like gs://{bucket}/{path}/{file}