Minio S3 - How to create a user with access to only 1 bucket
Step 1. Create a bucket
Step 2. Create an IAM Policy for the new bucket.
Use the following JSON code and change the text your-bucket-name
to the name of the new bucket.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::your-bucket-name/*",
"arn:aws:s3:::your-bucket-name"
]
}
]
}
Step 3. Create a new user. Assign the new policy ONLY to the new user.
When you login with the new user, they will have access to only the new bucket.
Note: The policy above will specify access to a single bucket. You can add the same policy to additional new users who need access to the bucket.