Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • 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
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex IoT Core
  • Service closure
    • All guides
    • Sending messages
    • Subscribing a device or registry to receive messages
    • Exporting messages to Data Streams
    • Viewing the connection log
        • Creating an alias
        • Getting a list of aliases
        • Updating an alias
        • Deleting an alias
      • Getting information about devices
      • Creating a device
      • Updating a device
      • Deleting a device
    • Viewing operations with service resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing devices
  3. Managing topic aliases
  4. Creating an alias

Creating an alias in Yandex IoT Core

Written by
Yandex Cloud
Updated at June 18, 2026

Warning

Yandex IoT Core is no longer available to new users.

Current users can create resources until November 1, 2026. Afterwards, the service will go read-only and cease to operate on December 1, 2026. For more information on the timing and procedure, see Service shutdown.

Aliases are linked to specific devices. To create an alias, you need to find the device ID or name.

Note

You can only use the $me system alias for the $monitoring/<device_ID>/json topic.

Management console
CLI
Terraform
API

To create an alias:

  1. In the management console, select a folder where you wish to create an alias.
  2. Navigate to IoT Core.
  3. Select the required registry from the list.
  4. On the left side of the window, select the Devices section.
  5. Click to the right of the device name and select Edit from the drop-down list.
  6. Add an alias:
    1. Click Add alias.
    2. Fill out the fields: enter an alias, e.g., events, and the topic type after $devices/<device_ID>, e.g., events.
      You will be able to use the events alias instead of the $devices/<device_ID>/events topic.
    3. Repeat these steps for each alias you add.
  7. Click Save.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

Create an alias:

yc iot device add-topic-aliases arenak5ciqss********
  --topic-aliases commands='$devices/arenak5ciqss********/commands'
Result:
id: arenak5ciqss********
registry_id: arenou2oj4ct********
created_at: "2019-09-16T12:32:48.911Z"
name: second
topic_aliases:
  commands: $devices/arenak5ciqss********/commands

You can also add an alias when creating a device. To do this, instead of a unique ID, specify the {id} in the device topic, since the unique ID is not known yet:

yc iot device create
  --registry-name <registry_name>
  --name <device_name>
  --topic-aliases <alias_name>='$devices/{id}/<events,_state,_commands_or_config>'

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the relevant documentation on the Terraform website or its mirror.

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To manage infrastructure using Terraform under a service account or user accounts (a Yandex account, a federated account, or a local user), authenticate using the appropriate method.

To add an alias to a device created usingTerraform:

  1. In the configuration file, specify the properties of the resources you want to create:

    • yandex_iot_core_device: Device properties:
      • registry_id: ID of the registry where the device was created.
      • name: Device name.
      • description: Device description.
      • aliases: Topic aliases.

    Here is an example of the resource structure in the configuration file:

    resource "yandex_iot_core_device" "my_device" {
      registry_id = "<registry_ID>"
      name        = "<device_name>"
      description = "test device for terraform provider documentation"
    
      aliases = {
        "some-alias1/subtopic" = "$devices/{id}/events/somesubtopic",
        "some-alias2/subtopic" = "$devices/{id}/events/aaa/bbb",
      }
    ...
    }
    

    For more information about yandex_iot_core_device properties, see this Terraform provider guide.

  2. In the command line, change to the folder where you edited the configuration file.

  3. Make sure the configuration file is correct using this command:

    terraform validate
    

    If the configuration is valid, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

    You will see a list of resources and their properties. No changes will be made at this step. Terraform will show any errors in the configuration.

  5. Apply the configuration changes:

    terraform apply
    
  6. Confirm the changes: type yes into the terminal and press Enter.

    You can verify device aliases in the management console or using the following CLI command:

    yc iot device get <device_name>
    

To create an alias, use the create REST API method for the Device resource or the DeviceService/Create gRPC API call.

Was the article helpful?

Previous
Deleting a registry
Next
Getting a list of aliases
© 2026 Direct Cursus Technology L.L.C.