Download
Download
yaml
type: "io.kestra.plugin.gcp.gcs.Download"
Download a file from a GCS bucket.
Examples
yaml
id: gcp_gcs_download
namespace: company.team
tasks:
- id: download
type: io.kestra.plugin.gcp.gcs.Download
from: "gs://my_bucket/dir/file.csv"
Properties
from
- Type: string
- Dynamic: ✔️
- Required: ❌
The file to copy
impersonatedServiceAccount
- Type: string
- Dynamic: ✔️
- Required: ❌
The GCP service account to impersonate.
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.
Outputs
bucket
- Type: string
- Required: ❌
The bucket of the downloaded file
path
- Type: string
- Required: ❌
The path on the bucket of the downloaded file
uri
- Type: string
- Required: ❌
- Format:
uri
**The url of the downloaded file on kestra storage **
Was this page helpful?