使用AWS S3。我有一個視頻和照片文件的混合。所有這些都在各自的子目錄中。所有文件都設置爲私人。當我嘗試訪問視頻文件時,我收到了AccessDenied
。其他文件很好。爲什麼我會用視頻獲取AccessDenied?
我想這無濟於事:
{
"Id": "Policy1331547131417",
"Statement": [
{
"Sid": "Stmt1331546963174",
"Action": [
"*"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::actual_bucket_name_here/uploads/users/*/videos/*",
"Principal": {
"AWS": [
"*"
]
}
},
{
"Sid": "Stmt1331547083926",
"Action": [
"*"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::actual_bucket_name_here/uploads/users/*/photos/*",
"Principal": {
"AWS": [
"*"
]
}
},
{
"Sid": "Stmt1331547130024",
"Action": [
"*"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::actual_bucket_name_here/uploads/users/*/banners/*",
"Principal": {
"AWS": [
"*"
]
}
}
]
}
我鬥政策是視頻,照片和橫幅相同。所有文件的ACL權限也是相同的。那麼爲什麼我無法從我的視頻目錄訪問文件?
通過哪種方式可以「訪問」您的視頻文件,即使用哪種工具(JavaScript視頻播放器小部件等)? – 2012-03-12 12:07:02