英文:
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:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论