我正在通过我的存储桶上的console.aws.amazon.com尝试这些策略:
{ “陈述”: [ { “效果”:“允许”, “行动”: [ "s3:ListBucket", "s3:GetBucketLocation", “s3:ListBucketMultipartUploads” ], "资源": "arn:aws:s3:::itnighq", “健康)状况”: {} }, { “效果”:“允许”, “行动”: [ "s3:AbortMultipartUpload", “s3:删除对象”, "s3:DeleteObjectVersion", "s3:GetObject", "s3:GetObjectAcl", "s3:GetObjectVersion", "s3:GetObjectVersionAcl", "s3:PutObject", "s3:PutObjectAcl", “s3:PutObjectAclVersion” ], "资源": "arn:aws:s3:::itnighq/*", “健康)状况”: {} }, { “效果”:“允许”, "动作": "s3:ListAllMyBuckets", “资源”:“*”, “健康)状况”: {} } ] }
但我收到此错误消息: Policy has invalid action - s3:ListAllMyBuckets 它似乎不喜欢"Resource": "*",我也尝试使用 **arn:aws:s3:::* ***,但它也不起作用。
有人有任何线索吗?