Minio

Topics: Storage technology

MinIO is an object-storage system that offers an S3-compatible API.

Create a new bucket

Create the bucket:

mc mb ALIAS/BUCKET

Buckets serving objects to the internet need to have anonymous download permissions:

mc anonymous set download ALIAS/BUCKET

Create user for the new bucket

Standard policy definition for bucket access:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Action": [
            "s3:ListBucket",
            "s3:PutObject",
            "s3:GetObject",
            "s3:DeleteObject"
        ],
      "Effect": "Allow",
      "Resource": [
        "arn:aws:s3:::<BUCKET NAME>/*", "arn:aws:s3:::<BUCKET NAME>"
      ],
      "Sid": "MyBucketAdminAccess"
    }
  ]
}

Import the bucket policy and attach it to the bucket:

mc admin policy add ALIAS my_bucket_policy my_bucket_policy.json

Add a new user account:

mc admin user add ALIAS ACCESSKEY SECRETKEY

Attach the user policy:

mc admin policy set ALIAS my_bucket_policy user=ACCESSKEY

Bookmarks