Copy Copy

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

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 used

# serviceAccount

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

The GCP service account key

# to

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

The destination path

# Outputs

# uri

  • Type: string

The destination full uri

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