Skip to content

Grant access to models bucket for my user

  1. Get the policy from pravda-dev
pravda@pravda-dev:~$ mc admin policy info minio models
{
 "Version": "2012-10-17",
 "Statement": [
  {
   "Effect": "Allow",
   "Action": [
    "s3:*"
   ],
   "Resource": [
    "arn:aws:s3:::models",
    "arn:aws:s3:::models/*"
   ]
  }
 ]
}
  1. Copy the output to a JSON file
  2. Create the policy in my computer
mc admin policy add minio models models-policy.json
  1. Add my user to models-bucket-masters group
mc admin group add minio models-bucket-masters haroune
  1. Attribute the policy to the group
mc admin policy set minio models group=models-bucket-masters