偶尔,AWS Elastic Transcoder会导致“您没有从指定存储桶读取指定对象所需的权限”。
请告知可能的原因。
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "1",
"Effect": "Allow",
"Action": [
"s3:Put*",
"s3:List*",
"s3:Get*",
"s3:*MultipartUpload*"
],
"Resource": [
"arn:aws:s3:::****-uploaded/*",
"arn:aws:s3:::****-uploaded",
"arn:aws:s3:::****-transcoded/*",
"arn:aws:s3:::****-transcoded"
]
},
{
"Sid": "2",
"Effect": "Allow",
"Action": "sns:Publish",
"Resource": "*"
},
{
"Sid": "3",
"Effect": "Deny",
"Action": [
"sns:*Remove*",
"sns:*Permission*",
"sns:*Delete*",
"s3:*Policy*",
"s3:*Delete*"
],
"Resource": "*"
}
]
}
错误并不总是发生。例如,一个产生720p的转码失败,而其他则没有。因此,我想原因可能不是Elastic Transcoder访问S3存储桶的IAM策略本身。
3004 ad1dbdec-a319-410b-bcc6-56b9331bc030:您没有将指定对象写入指定存储桶所需的权限:bucket = ****-transcoded,key = MOV02683-720p.mp4。
下面是没有错误的情况。