发生错误 (AccessDenied) 调用 ListObjectsV2 操作时: 在使用 S3 时拒绝访问。

huangapple go评论71阅读模式
英文:

An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied when using S3

问题

我在追踪一门在线的Udemy课程(Writing production-ready ETL pipelines in Python / Pandas | Udemy)。我尝试使用CLI连接AWS并访问数据集。

但是,我遇到了以下错误:

> 在调用ListObjectsV2操作时发生错误(AccessDenied):拒绝访问

我创建了一个具有标准策略AmazonS3FullAccess的IAM用户,因此我认为它应该给予所有资源完全的访问权限。我不明白为什么我仍然会收到这个错误?

我的代码如下:

aws s3 ls deutsche-boerse-xetra-pds/2021-04-21 --recursive --no-sign-request

AmazonS3FullAccess标准策略:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:*",
                "s3-object-lambda:*"
            ],
            "Resource": "*"
        }
    ]
}

我预期会得到根据指定的S3位置和日期(aws s3 ls deutsche-boerse-xetra-pds/2021-04-21)的所有文件列表。

英文:

I'm following an online Udemy course (Writing production-ready ETL pipelines in Python / Pandas | Udemy). I'm trying to connect AWS using CLI and accessing the dataset.

However I get the error:

>An error occurred (AccessDenied) when calling the ListObjectsV2 operation: Access Denied

I created an IAM user with a standard policy AmazonS3FullAccess, so I think it should give all access to all resources. I don't understand why I'm still getting the error?

my code for this is:

aws s3 ls deutsche-boerse-xetra-pds/2021-04-21 --recursive --no-sign-request

AmazonS3FullAccess standard policy:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:*",
                "s3-object-lambda:*"
            ],
            "Resource": "*"
        }
    ]
}

I expected to get an list of all the files as per specified s3 location and date
(aws s3 ls deutsche-boerse-xetra-pds/2021-04-21).

答案1

得分: 0

这似乎不是你这边的问题,而是数据所有者的问题。你可能需要直接联系数据所有者报告权限错误:

https://registry.opendata.aws/deutsche-boerse-pds/

英文:

This don't seems to be an issue from your side, but from the data owner. You may want to reach directly the owner data reporting the permission error:

https://registry.opendata.aws/deutsche-boerse-pds/

huangapple
  • 本文由 发表于 2023年5月22日 16:34:20
  • 转载请务必保留本文链接:https://go.coder-hub.com/76304360.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定