Create topic
Written by
Updated at September 12, 2025
Management console
AWS CLI
AWS SDK for Python
- In the management console
, select your folder. - In the list of services, select Cloud Notification Service.
- Select Topics on the left.
- Click Create topic.
- Enter a name for the topic. The name must be unique within Cloud Notification Service.
- Under Logging, enable the Write logs option.
- In the Folder list, select a folder to house the log group.
- In the Log group field, select an existing log group or create a new one.
- Click Create topic.
-
If you do not have the AWS CLI yet, install and configure it.
-
Run this command:
aws sns create-topic --name <topic_name>Where
nameis topic name, which can be any name unique within Cloud Notification Service.For more information about the
aws sns create-topiccommand, see the AWS documentation .
-
If you do not have the AWS SDK for Python (boto3) yet, install and configure it.
-
Use the following code to create a topic:
response = client.create_topic( Name="<topic_name>" ) print (f"Topic ARN:", response['TopicArn'])Where:
Name: Topic name, which can be any name unique within Cloud Notification Service.
Once you create a topic, you cannot change its name. To add endpoints to a topic, create subscriptions.