在 S3 中访问数据的权限不足 [英] Insufficient privileges for accessing data in S3
问题描述
我正在关注入门教程(Console) - Amazon SageMaker 上推荐引擎的 Amazon Personalize.导入User-item
交互数据时,出现如下错误:
I am following the tutorial on Getting Started (Console) - Amazon Personalize of the recommendation engine on Amazon SageMaker.
When importing User-item
interaction data, I got the following error:
您的数据集导入出错
访问 S3 中数据的权限不足.请查看 https:///docs.aws.amazon.com/personalize/latest/dg/getting-started.html#gs-upload-to-bucket 并修复 recommendation123
上的存储桶策略.
Insufficient privileges for accessing data in S3. Please look at https://docs.aws.amazon.com/personalize/latest/dg/getting-started.html#gs-upload-to-bucket and fix the bucket policy on recommendation123
.
我尝试了不同的存储桶策略,但都不允许导入数据.
I have tried different bucket policies but none of them is allowing to import the data.
用户-项目交互数据标志应从失败更改为活动.
The user-item interaction data flag should change from failed to active.
推荐答案
您需要在存储桶策略中而不是在角色中设置列表并获取存储桶的权限.
You need to set list and get permissions to your bucket, in a bucket policy, not in the role.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "personalize.amazonaws.com"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::bucket-dev-personalize"
},
{
"Effect": "Allow",
"Principal": {
"Service": "personalize.amazonaws.com"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucket-dev-personalize/*"
}
]
}
这篇关于在 S3 中访问数据的权限不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!