terraform-provider-minio
terraform-provider-minio copied to clipboard
Add support for setting `quota` in bucket
Description
When creating a bucket in the MinIO console, one may (optionally), specify a quota (e.g. 40Gi). I couldn't find a way to set a quota.
Support for setting quota
on bucket creation was added in #143.
Expected behavior: There should be a property quota
Actual behavior: There isn't
With some guidance from a contributor, I'll try to add it myself
@yardenshoham This should be possible.
A short look into example code (https://github.com/minio/madmin-go/blob/8a5b69247fe5aee210e15bb418c210a3d83df0fe/examples/bucket-quota.go).. should be doable.
Unsure on how much time I have, but I'd be willing to review code if you're willing to make a PR.
I'd start experimentally like:
Have a look into resource_minio_s3_bucket.go
, add a quota
field, add handling for it when creating/updating/reading the bucket information.
@yardenshoham The release v1.6.0 contains your work around bucket quotas. Thank you!