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 Answers
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
answered a year ago
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions