"We encountered an internal error. Please try again." AWS S3-SQS 集成

"We encountered an internal error. Please try again." AWS S3-SQS integration

当我尝试配置 S3 存储桶以将响应写入 SQS 时,我不断收到此错误。

有什么办法可以解决这个问题吗?

您是否将这样的策略附加到您的 SQS 队列?

{
 "Version": "2008-10-17",
 "Id": "example-ID",
 "Statement": [
  {
   "Sid": "AllowS3ToPublishMessages",
   "Effect": "Allow",
   "Principal": {
     "AWS": "*"  
   },
   "Action": [
    "SQS:SendMessage"
   ],
   "Resource": "sqs-episource-arn",
   "Condition": {
      "ArnLike": {          
      "aws:SourceArn": "arn:aws:s3:*:*:your-bucket-name"    
    }
   }
  }
 ]
}

(将 sqs-episource-arn 替换为 EpisourceExp.fifo 的完整 ARN,并将 your-bucket-name 替换为您的 S3 存储桶的存储桶名称)

S3/SQS集成目前不支持使用FIFO队列,你的队列是FIFO队列。

The following features of AWS services aren't currently compatible with FIFO queues:

  • Amazon CloudWatch Events

  • Amazon S3 Event Notifications

  • Amazon SNS Topic Subscriptions

https://aws.amazon.com/sqs/faqs/#fifo-queues