Copy Copy

yaml
type: "io.kestra.plugin.gcp.gcs.Copy"

Copy a file between bucket

Copy the file between Internal Storage or Google Cloud Storage file

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

  • Type: boolean
  • Dynamic:
  • Required:
  • Default: false

Whether to delete the source files (from parameter) on success copy

from

  • Type: string
  • Dynamic: ✔️
  • Required:

The file to copy

projectId

  • Type: string
  • Dynamic: ✔️
  • Required:

The GCP project ID.

scopes

  • Type: array
  • SubType: string
  • Dynamic: ✔️
  • Required:
  • Default: [https://www.googleapis.com/auth/cloud-platform]

The GCP scopes to be used.

serviceAccount

  • Type: string
  • Dynamic: ✔️
  • Required:

The GCP service account key.

to

  • Type: string
  • Dynamic: ✔️
  • Required:

The destination path

Outputs

uri

  • Type: string
  • Required:
  • Format: uri

The destination full uri

The full url will be like gs://{bucket}/{path}/{file}

Definitions

Was this page helpful?