Amazon S3 IAM用户可以“访问S3存储桶”

时间:2015-12-07 19:01:15

标签: amazon-web-services amazon-s3

我的用户收到消息

  

您无权使用Amazon S3控制台

我不明白为什么。用户属于我在Policy Generator

的帮助下制定此政策的群组
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1449507915000",
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::fouraxis"
            ]
        }
    ]
}

Policy Generator我选择了以下内容:

  

效果:允许

     

AWS服务:Amazon S3

     

亚马逊资源名称(ARN):“arn:aws:s3 ::: fouraxis”

存储桶名称为fouraxis

显然,我错过了一些东西。

1 个答案:

答案 0 :(得分:6)

S3控制台使用s3:ListAllMyBuckets API方法来驱动UI。您需要为用户添加此权限才能登录控制台并浏览S3。

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1449507915000",
            "Effect": "Allow",
            "Action": [
                "s3:*"
            ],
            "Resource": [
                "arn:aws:s3:::fouraxis"
            ]
        },
        {
            "Sid": "ListAllBuckets",
            "Action": "s3:ListAllMyBuckets",
            "Effect": "Allow",
            "Resource": "*"
        }
    ]
}