Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Notification Service
    • Overview
    • Getting started with mobile push notifications
    • Getting started with in-browser push notifications
    • Getting started with SMS
    • Getting started with topics
    • All guides
      • Create topic
      • Creating a subscription to a topic
      • Sending a notification to a topic
      • Managing a topic
      • Managing a subscription
    • Configuring logging
    • Overview
    • Mobile push notifications
    • In-browser push notifications
    • SMS
    • Topics
    • Quotas and limits
    • All tools
    • AWS CLI
    • AWS SDK for C++
    • AWS SDK for Go
    • AWS SDK for Java
    • AWS SDK for JavaScript
    • AWS SDK for Kotlin
    • AWS SDK for .NET
    • AWS SDK for PHP
    • AWS SDK for Python (boto3)
  • Pricing policy
  • Monitoring metrics
  • Logs Cloud Logging
  • Release notes
  1. Step-by-step operations
  2. Topics
  3. Create topic

Create topic

Written by
Yandex Cloud
Updated at September 12, 2025
Management console
AWS CLI
AWS SDK for Python
  1. In the management console, select your folder.
  2. In the list of services, select Cloud Notification Service.
  3. Select Topics on the left.
  4. Click Create topic.
  5. Enter a name for the topic. The name must be unique within Cloud Notification Service.
  6. Under Logging, enable the Write logs option.
  7. In the Folder list, select a folder to house the log group.
  8. In the Log group field, select an existing log group or create a new one.
  9. Click Create topic.
  1. If you do not have the AWS CLI yet, install and configure it.

  2. Run this command:

    aws sns create-topic --name <topic_name>
    

    Where name is topic name, which can be any name unique within Cloud Notification Service.

    For more information about the aws sns create-topic command, see the AWS documentation.

  1. If you do not have the AWS SDK for Python (boto3) yet, install and configure it.

  2. 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.

Was the article helpful?

Previous
Exiting the sandbox
Next
Creating a subscription to a topic
© 2025 Direct Cursus Technology L.L.C.