Is there an S3 policy for limiting access to only see/access one bucket?

前端 未结 23 812
孤城傲影
孤城傲影 2020-11-29 15:08

I have a simple bucket that looks like images.mysite.com on my S3 and other buckets containing backups, etc.

I want to allow a specific user to be able

23条回答
  •  无人及你
    2020-11-29 15:48

    A nice simple solution we came up with is to block the user to login to the root directory. So they must login with remote path set to desired folder.

     {
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": "arn:aws:s3:::folder-name*",
            "Condition": {}
        }
    ]
    }
    

提交回复
热议问题