Upload Upload

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

Upload a file to a GCS bucket.

Examples

yaml
id: gcp_gcs_upload
namespace: company.team

tasks:
  - id: upload
    type: io.kestra.plugin.gcp.gcs.Upload
    from: "{{ inputs.file }}"
    to: "gs://my_bucket/dir/file.csv"

Properties

cacheControl

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

The blob's data cache control.

contentDisposition

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

The blob's data content disposition.

contentEncoding

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

The blob's data content encoding.

contentType

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

The blob's data content type.

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

Definitions

Was this page helpful?