访问S3-AWS中数据的权限不足



我一直在尝试访问S3资源以在AWS Personalize中使用。每当我尝试时,我都会得到以下错误。我已经阅读了这个问题,并为S3创建了策略。

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 bucket policy on personalize123.

AWS Bucket权限:

{
"Version": "2012-10-17",
"Id": "Policy1584771703282",
"Statement": [
{
"Sid": "Stmt1584771695535",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::289126069598:root"
},
"Action": "s3:*",
"Resource": "arn:aws:s3:::personalize123/ratings.csv"
}
]
}

Amazon Personalize需要权限才能访问S3存储桶。必须启用ListBucket和GetObject操作。尝试编辑此

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "personalize.amazonaws.com"
},
"Action": "s3:ListBucket",
"Resource": "arn:aws:s3:::yourbucket"
},
{
"Effect": "Allow",
"Principal": {
"Service": "personalize.amazonaws.com"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::yourbucket/*"
}
]
}

读取上传到S3 Bucket

相关内容

  • 没有找到相关文章

最新更新