Menu
Amazon Rekognition
Developer Guide

Giving Rekognition Video Access to Your Amazon SNS Topics

You use an AWS Identity and Access Management (IAM) service role to give Rekognition Video access to Amazon SNS topics that you create. IAM provides the Rekognition use case for creating a Rekognition Video service role.

Giving Access to Multiple Amazon SNS Topics

You can give Rekognition Video access to multiple Amazon SNS topics by using the AmazonRekognitionServiceRole permissions policy and prepending the topic names with AmazonRekognition—for example, AmazonRekognitionMyTopicName.

To give Rekognition Video access to multiple Amazon SNS topics

  1. Create an IAM service role. Use the following information to create the IAM service role:

    1. Choose Rekognition for the service name.

    2. Choose Rekognition for the service role use case.

    3. Choose the AmazonRekognitionServiceRole permissions policy, which gives Rekognition Video access to Amazon SNS topics that are prefixed with AmazonRekognition.

  2. Note the ARN of the service role. You need it to start video analysis operations.

Giving Access to an Existing Amazon SNS Topic

You can create a permissions policy that allows Rekognition Video access to an existing Amazon SNS topic.

To give Rekognition Video access to an existing Amazon SNS topic

  1. Create a new permissions policy with the IAM JSON policy editor, and use the following policy. Replace topicarn with the Amazon Resource Name (ARN) of the desired Amazon SNS topic.

    { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "sns:Publish" ], "Resource": "topicarn" } ] }
  2. Create an IAM service role, or update an existing IAM service role. Use the following information to create the IAM service role:

    1. Choose Rekognition for the service name.

    2. Choose Rekognition for the service role use case.

    3. Attach the permissions policy you created in step 1.

  3. Note the ARN of the service role. You need it to start video analysis operations.