Video Segment analysis and SQS status update

0

I am running rekognition video-segment-detection in a notebook using the guideline from https://docs.aws.amazon.com/rekognition/latest/dg/video-analyzing-with-sqs.html. However, the SQS never receives a Jobstatus update. So my task run forever. I used AWS CLI to confirm that the video analysis has succeeded long ago.

AmazonS3FullAccess, AmazonRekognitionFullAccess, AmazonSNSFullAccess and AmazonSQSFullAccess have all been granted to the IAM user used to run this script.

What could be the reason why the the SNS topic did not update SQS queue when the rekognition segment analysis completed?

2개 답변
1

Hello PeterCrayonite,

I understand that you are using the example code in [1] in a notebook to run a video-segment-detection in Amazon Rekognition. You mentioned that you have granted the IAM user all permissions as stated in step one of Configuring Amazon Rekognition Video [2] and you have used the CLI to confirm that the video analysis was completed successfully. However, the Jobstatus update never gets sent to the SQS queue.

You can get the completion status message by subscribing to the topic with an Amazon SQS queue [3] which is supposed to be done for you within the code example [1]. In addition to that you have to create an IAM service role to grant Amazon Rekognition Video access to your Amazon SNS topics, see step 7 in doc [2].

Please note, to get the completion status from the Amazon SQS queue, the example [1] tracks the job identifier (JobId) that is returned in StartLabelDetection, and only gets the results for matching job identifiers that are read from the completion status. For simplicity, the example deletes jobs that don't match. Consider adding them to an Amazon SQS dead-letter queue for further investigation [1]. To help your investigation, subscribe to the Amazon SNS topic by email so you can receive the messages that are sent to your Amazon SNS topic in your email inbox [4][5] if you have not done so.

I recommend that you open a Support case with AWS Technical Support [6] if this issue persist. The Technical Support team will be able to help you with further troubleshooting of this issue.

References:

  1. https://docs.aws.amazon.com/rekognition/latest/dg/video-analyzing-with-sqs.html
  2. https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html
  3. https://docs.aws.amazon.com/sns/latest/dg/subscribe-sqs-queue-to-sns-topic.html
  4. https://docs.aws.amazon.com/sns/latest/dg/sns-create-subscribe-endpoint-to-topic.html
  5. https://docs.aws.amazon.com/rekognition/latest/dg/video-troubleshooting.html
  6. https://docs.aws.amazon.com/awssupport/latest/user/case-management.html
AWS
답변함 일 년 전
0

Hi PeterCrayonite,

Can you please double check whether you are subscribing to the correct topic, etc.? There are also some more details on role setup in https://docs.aws.amazon.com/rekognition/latest/dg/api-video-roles.html. Please check if something is still missing.

My guess is still something missing in the setup.

Thanks.

AWS
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠