本文介绍了S3政策无效的动作 - S3:ListAllMyBuckets的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想这些policy通过 console.aws.amazon.com 在我的水桶:
I'm trying these policy through console.aws.amazon.com on my buckets:
{
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation",
"s3:ListBucketMultipartUploads"
],
"Resource": "arn:aws:s3:::itnighq",
"Condition": {}
},
{
"Effect": "Allow",
"Action": [
"s3:AbortMultipartUpload",
"s3:DeleteObject",
"s3:DeleteObjectVersion",
"s3:GetObject",
"s3:GetObjectAcl",
"s3:GetObjectVersion",
"s3:GetObjectVersionAcl",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:PutObjectAclVersion"
],
"Resource": "arn:aws:s3:::itnighq/*",
"Condition": {}
},
{
"Effect": "Allow",
"Action": "s3:ListAllMyBuckets",
"Resource": "*",
"Condition": {}
}
]
}
不过,我收到此错误信息:政策无效的动作 - S3:ListAllMyBuckets它似乎不喜欢资源:的,我也试着使用 ARN:AWS:S3 ::: 的* ,但它不工作的。
But I'm getting this error message:Policy has invalid action - s3:ListAllMyBucketsIt doesn't seem to like "Resource": "" , I've also tried to use arn:aws:s3:::*, but it doesn't work either.
任何人有任何线索?
推荐答案
我想通了自己。它需要在完成的 IAM 的,而不是在S3中本身...
I figured out myself. It needs to be done in the IAM, not in S3 itself...
这篇关于S3政策无效的动作 - S3:ListAllMyBuckets的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!