Compose multiple objects in a GCS bucket into a single object.
This task allows you to concatenate up to 32 files in a given GCS bucket into a single file.
type: "io.kestra.plugin.gcp.gcs.Compose"
Examples
Concatenate files in a bucket
id: gcp_gcs_compose
namespace: company.team
tasks:
- id: compose
type: io.kestra.plugin.gcp.gcs.Compose
list:
from: "gs://my_bucket/dir/"
to: "gs://my_bucket/destination/my-compose-file.txt"
Properties
list *RequiredCompose-List
The directory to list
allowEmpty booleanstring
false
if true
, don't failed if no result
impersonatedServiceAccount string
The GCP service account to impersonate.
projectId string
The GCP project ID.
scopes array
["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
uri
Definitions
io.kestra.plugin.gcp.gcs.Compose-List
from *Requiredstring
The directory to list
filter string
BOTH
FILES
DIRECTORY
BOTH
listingType string
DIRECTORY
RECURSIVE
DIRECTORY
The listing type you want (like directory or recursive)
if DIRECTORY, will only list objects in the specified directory
if RECURSIVE, will list objects in the specified directory recursively
Default value is DIRECTORY
When using RECURSIVE value, be careful to move your files to a location not in the from
scope
regExp string
A regexp to filter on full path
ex:
regExp: .*
to match all files
regExp: .*2020-01-0.\\.csv
to match files between 01 and 09 of january ending with .csv