yaml
type: "io.kestra.plugin.minio.Copy"

Copy a file between buckets.

Examples

yaml
id: minio_copy
namespace: company.team

tasks:
  - id: copy
    type: io.kestra.plugin.minio.Copy
    accessKeyId: "<access-key>"
    secretKeyId: "<secret-key>"
    region: "eu-central-1"
    from:
      bucket: "my-bucket"
      key: "path/to/file"
    to:
      bucket: "my-bucket2"
      key: "path/to/file2"

Copy file in an S3-compatible storage — here, Spaces Object Storage from Digital Ocean.

yaml
id: s3_compatible_copy
namespace: company.team

tasks:
  - id: copy_file
    type: io.kestra.plugin.minio.Copy
    accessKeyId: "<access-key>"
    secretKeyId: "<secret-key>"
    endpoint: https://<region>.digitaloceanspaces.com
    from:
      bucket: "my-bucket"
      key: "path/to/file"
    to:
      bucket: "my-bucket2"
      key: "path/to/file2"

Properties

accessKeyId

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

Access Key Id for authentication.

bucket

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

The bucket name.

delete

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

Whether to delete the source file after download.

endpoint

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

URL to the MinIO endpoint.

from

The source bucket and key.

region

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

MinIO region with which the SDK should communicate.

secretKeyId

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

Secret Key Id for authentication.

to

The destination bucket and key.

Outputs

bucket

  • Type: string
  • Required:

key

  • Type: string
  • Required:

versionId

  • Type: string
  • Required:

Definitions

io.kestra.plugin.minio.Copy-CopyObjectFrom

  • bucket
    • Type: string
    • Dynamic: ✔️
    • Required:
  • key
    • Type: string
    • Dynamic: ✔️
    • Required:
  • versionId
    • Type: string
    • Dynamic: ✔️
    • Required:

io.kestra.plugin.minio.Copy-CopyObject

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