It said this minio.error.S3Error: S3 operation failed; code: AccessDenied, message: Access Denied., resource: /task-reviewer, request_id: 1852F028B2B184FB, host_id: dd9025bab4ad464b049177c95eb6ebf374d3b3fd1af9251148b658df7ac2e3e8, bucket_name: task-reviewer I am trying MinIO as an alternative to AWS S3. I tried the console dashboard and cli to do some things like uploading file to a bucket and it works without a problem. Then i tried to run this python code to upload a file into a bucket just like the former but it said AccessDenied (i'm using the same access key and secret key). # Create client with access and secret key. client = Minio("server.com", "accesskey", "secretkey") objects = client.list_objects(BUCKET_NAME, recursive=True) for obj in objects: print(f"- {obj.object_name} ({obj.size} bytes)") What am i doing wrong? i don't use the restrict beyond user policy thing (i keep it default) this is what written in my access key policy btw { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "s3utObject", "s3eleteObject", "s3:GetObject", "s3:ListBucket" ], "Resource": [ "arn:aws:s3::: task-reviewer", "arn:aws:s3:::task-reviewer/*" ] } ] } btw this is not my server, i was just given account (username and password) to login to the console and try things Continue reading...