Create the Amazon SNS topic
The steps for creating Amazon SNS topics for work team notifications are similar to the steps in Getting Started in the Amazon SNS Developer Guide, with one significant addition—you must add an access policy so that Amazon SageMaker can publish messages to the topic on your behalf.
If you create a work team using the console, the console provides an option to create a new topic for the team so that you don't have to perform these steps.
Important
The Amazon SNS feature is not supported by Amazon A2I. If you subscribe your work team to an Amazon SNS topic, workers will only receive notifications about Ground Truth labeling jobs. Workers will not receive notifications about new Amazon A2I human review tasks.
To add the policy when you create the topic
Open the Amazon SNS console at https://console.aws.amazon.com/sns/v3/home
. -
In Create topic, enter the name of your topic and then choose Next steps.
-
In Access policy, choose Advanced.
-
In the JSON editor, find the
Resource
property, which displays the topic's ARN. -
Copy the
Resource
ARN value. -
Before the final closing brace (
]
), add the following policy., { "Sid": "AwsSagemaker_SnsAccessPolicy", "Effect": "Allow", "Principal": { "Service": "sagemaker.amazonaws.com" }, "Action": "sns:Publish", "Resource": "arn:partition:sns:region:111122223333:MyTopic", # ARN of the topic you copied in the previous step "Condition": { "ArnLike": { "aws:SourceArn": "arn:partition:sagemaker:region:111122223333:workteam/*" # Workteam ARN }, "StringEquals": { "aws:SourceAccount": "111122223333" # SNS topic account } } }
-
Create the topic.
After you create the topic, it appears in your Topics summary screen. For more information about creating topics, see Creating a Topic in the Amazon SNS Developer Guide.