How to list only one bucket in AWS S3?

0

I created a user in AWS to only interact with a specific bucket, but at the moment of entering the S3 console (web) he can see the list of all the buckets. Although, you can not modify anything, I would like you not to see the names of the other buckets that do not belong to you.

The JSON with the policies is as follows

{
"Version": "2012-10-17",
"Statement": [
    {
        "Effect": "Allow",
        "Action": [
            "s3:GetBucketLocation",
            "s3:ListAllMyBuckets"
        ],
        "Resource": "*"
    },
    {
        "Effect": "Allow",
        "Action": [
            "s3:ListBucket"
        ],
        "Resource": [
            "arn:aws:s3:::mybucket"
        ]
    },
    {
        "Effect": "Allow",
        "Action": [
            "s3:PutObject",
            "s3:GetObject",
            "s3:DeleteObject"
        ],
        "Resource": [
            "arn:aws:s3:::mybucket/*"
        ]
    }
]
}
    
asked by Gonzalo Moreno Caballero 29.11.2018 в 21:49
source

0 answers