Upload

Upload

Certified

Upload a file to a MinIO bucket

yaml
type: io.kestra.plugin.minio.Upload
yaml
id: minio_upload
namespace: company.team

inputs:
  - id: file
    type: FILE

tasks:
  - id: upload_to_storage
    type: io.kestra.plugin.minio.Upload
    accessKeyId: "<access-key>"
    secretKeyId: "{{ secret('MINIO_SECRET_KEY_ID') }}"
    region: "eu-central-1"
    from: "{{ inputs.file }}"
    bucket: "my-bucket"
    key: "path/to/file"

yaml
id: s3_compatible_upload
namespace: company.team

tasks:
  - id: http_download
    type: io.kestra.plugin.core.http.Download
    uri: https://huggingface.co/datasets/kestra/datasets/raw/main/csv/orders.csv

  - id: upload_to_storage
    type: io.kestra.plugin.minio.Upload
    accessKeyId: "<access-key>"
    secretKeyId: "{{ secret('MINIO_SECRET_KEY_ID') }}"
    endpoint: https://<region>.digitaloceanspaces.com
    bucket: "kestra-test-bucket"
    from: "{{ outputs.http_download.uri }}"
    key: "data/orders.csv"
Properties
Definitions
Example
yaml
id: minio_list
namespace: company.team

tasks:
  - id: list_objects
    type: io.kestra.plugin.minio.List
    accessKeyId: "<access-key>"
    secretKeyId: "{{ secret('MINIO_SECRET_KEY_ID') }}"
    region: "eu-central-1"
    bucket: "my-bucket"
    prefix: "sub-dir"

yaml
id: s3_compatible_list
namespace: company.team

tasks:
  - id: list_objects
    type: io.kestra.plugin.minio.List
    accessKeyId: "<access-key>"
    secretKeyId: "{{ secret('MINIO_SECRET_KEY_ID') }}"
    endpoint: https://<region>.digitaloceanspaces.com
    bucket: "kestra-test-bucket"
accessKeyIdstring
bucketstring
caPemstring
clientPemstring
delimiterstring
endpointstring
filterstring
DefaultBOTH
Possible Values
FILESDIRECTORYBOTH
includeVersionsbooleanstring
Defaulttrue
markerstring
maxKeysintegerstring
Default1000
pluginDefaultsRefstring
prefixstring
recursivebooleanstring
Defaulttrue
regexpstring
regionstring
secretKeyIdstring
ssl
insecureTrustAllCertificatesbooleanstring
startAfterstring
typeobject
Definitions
insecureTrustAllCertificatesbooleanstring
Unitcount
Unitbytes