Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services S3分析读取策略_Amazon Web Services_Amazon S3 - Fatal编程技术网

Amazon web services S3分析读取策略

Amazon web services S3分析读取策略,amazon-web-services,amazon-s3,Amazon Web Services,Amazon S3,我想允许用户权限列出所有bucket,并读取启用了它的任何bucket上的分析。我有以下政策: { "Version": "2012-10-17", "Statement": [ { "Sid": "ListBucketsReadAnalytics", "Effect": "Allow", "Action": [ "s3:ListAllMyBuckets",

我想允许用户权限列出所有bucket,并读取启用了它的任何bucket上的分析。我有以下政策:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "ListBucketsReadAnalytics",
            "Effect": "Allow",
            "Action": [
                "s3:ListAllMyBuckets",
                "s3:GetAnalyticsConfiguration",
                "s3:GetMetricsConfiguration"
            ],
            "Resource": "*"
        }
    ]
}
当我访问任何S3 bucket的分析时,我都会得到以下信息:

Analyzing your data
We are analyzing your storage usage and will share the observed infrequent access patterns.

当我与管理员用户访问相同的Bucket analytics时,我不明白这一点。有没有我遗漏的政策?我似乎无法用谷歌搜索这一个,如果有人知道很好的知识库或方法来计算我需要哪些策略来执行“x”行动,请分享。

好的,使用暴力,以下就足够了:

        {
            "Sid": "S3Analytics",
            "Effect": "Allow",
            "Action": [
                "s3:GetObject",
                "s3:ListAllMyBuckets",
                "s3:GetAnalyticsConfiguration"
            ],
            "Resource": "*"
        }