CreateBucket
CreateBucket
yaml
type: "io.kestra.plugin.minio.CreateBucket"
Create a bucket
Examples
Create a new bucket with some options
yaml
id: minio_create_bucket
namespace: company.team
tasks:
- id: create_bucket
type: io.kestra.plugin.minio.CreateBucket
accessKeyId: "<access-key>"
secretKeyId: "<secret-key>"
region: "eu-central-1"
bucket: "my-bucket"
Create a new bucket on an S3-compatible storage — here, Spaces Object Storage from Digital Ocean.
yaml
id: s3_compatible_bucket
namespace: company.team
tasks:
- id: create_bucket
type: io.kestra.plugin.minio.CreateBucket
accessKeyId: "<access_key>"
secretKeyId: "<secret_key>"
endpoint: https://<region>.digitaloceanspaces.com #example region: nyc3, tor1
bucket: "kestra-test-bucket"
Properties
accessKeyId
- Type: string
- Dynamic: ✔️
- Required: ❌
Access Key Id for authentication.
bucket
- Type: string
- Dynamic: ✔️
- Required: ❌
The bucket name.
endpoint
- Type: string
- Dynamic: ✔️
- Required: ❌
URL to the MinIO endpoint.
objectLockEnabledForBucket
- Type: boolean
- Dynamic: ❌
- Required: ❌
Specifies whether you want Object Lock to be enabled for the new bucket.
region
- Type: string
- Dynamic: ✔️
- Required: ❌
MinIO region with which the SDK should communicate.
secretKeyId
- Type: string
- Dynamic: ✔️
- Required: ❌
Secret Key Id for authentication.
Outputs
bucket
- Type: string
- Required: ❌
Definitions
Was this page helpful?