Amazon SageMaker
Developer Guide

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

Create and manage Amazon SNS topics for your work teams

Create the Amazon SNS topic

These instructions are needed when you:

  • Create a topic to which you will subscribe an existing work team.

  • Create a topic prior to creating a work team.

  • Create or modify the work team with an API call and need to specify a topic ARN.

If you create a work team using the console, that process provides an option to create a new topic for the team, and if used, handles these steps for you.

The creation of Amazon SNS topics for work team notification is similar to the steps in the Amazon SNS Getting Started document, with one significant addition: adding an access policy so the Sagemaker service can publish messages to the topic on your behalf.

Add the policy while creating the topic

  1. In the Access policy panel, select the advanced method.

  2. In the JSON editor, find the Resource property, which displays what the ARN of the topic will be when it is created. If the value ends in "undefined," change "undefined" to the name of the topic.

  3. Copy the Resource value.

  4. Before the final closing bracket (]), add the following policy.

    { "Sid": "AWSSagemaker_AccessPolicy", "Effect": "Allow", "Principal": { "Service": "" }, "Action": "sns:Publish", "Resource": "resource ARN you copied in the previous step" }
  5. Create the topic.

For more details on creating topics, see the Amazon SNS "Creating a Topic" tutorial.

Manage worker subscriptions

Workers are auto-subscribed to your topic only when a Amazon Cognito user group is created or imported during the creation of a work team that is subscribed to the topic at creation.

If a work team is subscribed to a topic after creation, the individual members at the time of creation are not automatically subscribed. See "Subscribing an Endpoint to an Amazon SNS Topic" for information on subscribing the workers' email addresses to the topic.