Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex IoT Core
    • All guides
    • Sending messages
    • Subscribing a device or registry to receive messages
    • Exporting messages to Data Streams
    • Viewing the connection log
      • Getting information about registries
      • Creating a registry
      • Updating a registry
      • Enabling and disabling a registry
      • Deleting a registry
    • Viewing operations with the service's resources
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing registries
  3. Creating a registry

Creating a registry

Written by
Yandex Cloud
Improved by
Danila N.
Updated at May 13, 2025
Management console
CLI
Terraform
API
  1. In the management console, select the folder you want to create a registry in.

  2. Select IoT Core.

  3. In the left-hand panel, select Registries.

  4. Click Create registry.

  5. Under General information, add:

    • Registry Name, e.g., my-registry.

    • (Optional) Description with additional information about the registry.

    • Password that you will use to access the registry. To create a password, you can use this password generator.

      Note

      Save the password as you will need it for authentication.

    • (Optional) To assign a label to the registry, fill in the Key and Value fields and click Add label.

  6. (Optional) Add a certificate:

    • To add a file:

      1. Choose the File method.
      2. Click Attach file.
      3. Select the file with the public key of the certificate and click Open.
      4. Click Add.
    • To add text:

      1. Choose the Text method.
      2. Paste the certificate's public key to the Content field.
      3. Click Add.
  7. Click Create.

If you do not have the Yandex Cloud (CLI) command line interface yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. Create a registry:

    yc iot registry create --name <registry_name>
    

    The registry naming requirements are as follows:

    • It must be from 2 to 63 characters long.
    • It may contain lowercase Latin letters, numbers, and hyphens.
    • It must start with a letter and cannot end with a hyphen.

    Result:

    id: b91hafek85**********
    folder_id: aoek49ghmk*********
    created_at: "2019-05-27T13:40:06.923Z"
    name: <registry_name>
    status: ACTIVE
    log_group_id: ckghotead**********
    
  2. (Optional) Assign the registry a password for authentication with a username and password:

    yc iot registry password add --registry-name <registry_name>
    

    You will be prompted to enter a password. Password requirements:

    • The password must contain numbers, upper-case and lower-case letters, and special characters.
    • It must be at least 14 characters long.

    Result:

    registry_id: b91hafek85**********
    id: aoek49ghmk*********
    created_at: "2019-05-27T13:44:06.923Z"
    
  3. (Optional) Add to the registry a certificate for authentication with certificates:

    yc iot registry certificate add \
       --registry-name <registry_name> \
       --certificate-file <certificate>
    

    Where:

    • --registry-name: Registry name.
    • --certificate-file: Path to the public key of the certificate, such as cert.pem.

    Result:

    registry_id: b91hafek85**********
    fingerprint: 589ce16050****
    certificate_data: |
       -----BEGIN CERTIFICATE-----
       MIIE/jCCAuagAwIBAgIJAPRA...
       -----END CERTIFICATE-----
    created_at: "2019-05-27T13:41:45.295Z"
    

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 documentation on the Terraform website or mirror website.

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

Note

To add certificates to a registry, generate them in advance.

To create a device registry:

  1. In the configuration file, describe the parameters of the resource to create:

    • yandex_iot_core_registry: Registry parameters:

      • name: Registry name.
      • description: Registry description.
      • labels: Registry labels in key:value format.
      • passwords: List of registry passwords for authentication with a username and password.
      • certificates: List of registry certificates for authentication with certificates.

    Note

    Make sure to use only one of the two authentication methods.

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

    resource "yandex_iot_core_registry" "my_registry" {
      name        = "test-registry"
      description = "test registry for terraform provider documentation"
      labels = {
        test-label = "label-test"
      }
    
      passwords = [
        "<password_1>",
        "<password_2>"
      ]
    
      certificates = [
        file("<path_to_first_certificate_file>"),
        file("<path_to_second_certificate_file>")
      ]
    }
    
    output "yandex_iot_core_registry_my_registry" {
      value = "${yandex_iot_core_registry.my_registry.id}"
    }
    

    For more information about the resources you can create with Terraform, see the relevant provider documentation.

  2. Make sure the configuration files are correct.

    1. In the command line, navigate to the directory where you created the configuration file.

    2. Run a check using this command:

      terraform plan
      

    If you described the configuration correctly, the terminal will display a list of the resources being created and their settings. If the configuration contains any errors, Terraform will point them out.

  3. Deploy the cloud resources.

    1. If the configuration does not contain any errors, run this command:

      terraform apply
      
    2. Confirm creating the resources.

      This will create all resources you need in the specified folder. You can check your new resources and their settings in the management console or using this CLI command:

      yc iot registry list
      

To create a registry, use the create REST API method for the Registry resource or the RegistryService/Create gRPC API call.

Was the article helpful?

Previous
Getting information about registries
Next
Updating a registry
© 2025 Direct Cursus Technology L.L.C.