Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • Yandex SIEM
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • 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.
Tutorials
    • All tutorials
    • Unassisted deployment of the Apache Kafka® web interface
    • Upgrading a Managed Service for Apache Kafka® cluster to migrate from ZooKeeper to KRaft
    • Migrating a database from a third-party Apache Kafka® cluster to Managed Service for Apache Kafka®
    • Moving data between Managed Service for Apache Kafka® clusters using Data Transfer
    • Delivering data from Managed Service for MySQL® to Managed Service for Apache Kafka® using Data Transfer
    • Delivering data from Managed Service for MySQL® to Managed Service for Apache Kafka® using Debezium
    • Delivering data from Managed Service for PostgreSQL to Managed Service for Apache Kafka® using Data Transfer
    • Delivering data from Managed Service for PostgreSQL to Managed Service for Apache Kafka® using Debezium
    • Delivering data from Managed Service for YDB to Managed Service for Apache Kafka® using Data Transfer
    • Delivering data from Managed Service for Apache Kafka® to Managed Service for ClickHouse® using Data Transfer
    • Delivering data from Managed Service for Apache Kafka® to Yandex MPP Analytics for PostgreSQL using Data Transfer
    • Delivering data from Managed Service for Apache Kafka® to Yandex StoreDoc using Data Transfer
    • Delivering data from Managed Service for Apache Kafka® to Managed Service for MySQL® using Data Transfer
    • Delivering data from Managed Service for Apache Kafka® to Managed Service for OpenSearch using Data Transfer
    • Delivering data from Managed Service for Apache Kafka® to Managed Service for PostgreSQL using Data Transfer
    • Delivering data from Managed Service for Apache Kafka® to Managed Service for YDB using Data Transfer
    • Delivering data from Managed Service for Apache Kafka® to Data Streams using Data Transfer
    • Delivering data from Data Streams to Managed Service for YDB using Data Transfer
    • Delivering data from Data Streams to Managed Service for Apache Kafka® using Data Transfer
    • YDB change data capture and delivery to YDS
    • Configuring Kafka Connect to work with a Managed Service for Apache Kafka® cluster
    • Synchronizing Apache Kafka® topics in Object Storage with no web access
    • Monitoring message loss in an Apache Kafka® topic
    • Automating Query tasks with Managed Service for Apache Airflow™
    • Sending requests to the Yandex Cloud API via the Yandex Cloud Python SDK
    • Configuring an SMTP server to send e-mail notifications
    • Adding data to a ClickHouse® DB
    • Migrating data to Managed Service for ClickHouse® using ClickHouse®
    • Migrating data to Managed Service for ClickHouse® using Data Transfer
    • Delivering data from Managed Service for MySQL® to Managed Service for ClickHouse® using Data Transfer
    • Asynchronously replicating data from PostgreSQL to ClickHouse®
    • Exchanging data between Managed Service for ClickHouse® and Yandex Data Processing
    • Configuring Managed Service for ClickHouse® for Graphite
    • Fetching data from Managed Service for Apache Kafka® to Managed Service for ClickHouse®
    • Fetching data from Managed Service for Apache Kafka® to ksqlDB
    • Fetching data from RabbitMQ to Managed Service for ClickHouse®
    • Saving a data stream from Data Streams to Managed Service for ClickHouse®
    • Asynchronous replication of data from Yandex Metrica to ClickHouse® using Data Transfer
    • Using hybrid storage in Managed Service for ClickHouse®
    • Sharding Managed Service for ClickHouse® tables
    • Loading data from Yandex Direct to a Managed Service for ClickHouse® data mart using Cloud Functions, Object Storage, and Data Transfer
    • Loading data from Object Storage to Managed Service for ClickHouse® using Data Transfer
    • Migrating data from Managed Service for OpenSearch to Managed Service for ClickHouse® with a storage change using Data Transfer
    • Loading data from Managed Service for YDB to Managed Service for ClickHouse® using Data Transfer
    • Yandex Managed Service for ClickHouse® integration with Microsoft SQL Server via ClickHouse® JDBC Bridge
    • Migrating databases from Google BigQuery to Managed Service for ClickHouse®
    • Yandex Managed Service for ClickHouse® integration with Oracle via ClickHouse® JDBC Bridge
    • Executing analytical queries in Managed Service for PostgreSQL with processing in Managed Service for ClickHouse®
    • Configuring Cloud DNS to access a Managed Service for ClickHouse® cluster from other cloud networks
    • Migrating a Yandex Data Processing HDFS cluster to a different availability zone
    • Importing data from Managed Service for MySQL® to Yandex Data Processing using Sqoop
    • Importing data from Managed Service for PostgreSQL to Yandex Data Processing using Sqoop
    • Mounting Object Storage buckets to the file system of Yandex Data Processing hosts
    • Working with Apache Kafka® topics using Yandex Data Processing
    • Automating operations with Yandex Data Processing using Managed Service for Apache Airflow™
    • Shared use of Yandex Data Processing tables through Apache Hive™ Metastore
    • Transferring metadata across Yandex Data Processing clusters using Apache Hive™ Metastore
    • Importing, processing, and exporting Object Storage data to Managed Service for ClickHouse®
    • Migrating collections from a third-party MongoDB cluster to Yandex StoreDoc
    • Migrating data to Yandex StoreDoc
    • Migrating Yandex StoreDoc cluster from version 4.4 to 6.0
    • Sharding Yandex StoreDoc collections
    • Yandex StoreDoc performance analysis and optimization
    • Managed Service for MySQL® performance analysis and optimization
    • Syncing data from a third-party MySQL® cluster to Managed Service for MySQL® using Data Transfer
    • Migrating a database from Managed Service for MySQL® to a third-party MySQL® cluster
    • Migrating a database from Managed Service for MySQL® to Object Storage using Data Transfer
    • Migrating data from Object Storage to Managed Service for MySQL® via Data Transfer
    • Delivering data from Managed Service for MySQL® to Managed Service for Apache Kafka® using Data Transfer
    • Delivering data from Managed Service for MySQL® to Managed Service for Apache Kafka® using Debezium
    • Migrating a database from Managed Service for MySQL® to Managed Service for YDB using Data Transfer
    • MySQL® change data capture and delivery to YDS
    • Migrating data from Managed Service for MySQL® to Managed Service for PostgreSQL using Data Transfer
    • Migrating data from AWS RDS for PostgreSQL to Managed Service for PostgreSQL using Data Transfer
    • Migrating data from Managed Service for MySQL® to Yandex MPP Analytics for PostgreSQL using Data Transfer
    • Configuring an index policy in Managed Service for OpenSearch
    • Configuring a cold storage policy in Managed Service for OpenSearch
    • Migrating data from a third-party OpenSearch cluster to Managed Service for OpenSearch using Data Transfer
    • Loading data from Managed Service for OpenSearch to Object Storage using Data Transfer
    • Migrating data from Managed Service for OpenSearch to Managed Service for YDB using Data Transfer
    • Copying data from Managed Service for OpenSearch to Yandex MPP Analytics for PostgreSQL using Yandex Data Transfer
    • Migrating data from Managed Service for PostgreSQL to Managed Service for OpenSearch using Data Transfer
    • Authenticating a Managed Service for OpenSearch cluster in OpenSearch Dashboards using Keycloak
    • Using the yandex-lemmer plugin in Managed Service for OpenSearch
    • Sending email notifications in Managed Service for OpenSearch
    • Connecting an MCP client to an OpenSearch cluster
    • Creating a PostgreSQL cluster for 1C:Enterprise
    • Troubleshooting Managed Service for PostgreSQL cluster performance
    • Managed Service for PostgreSQL performance analysis and optimization
    • Logical replication in PostgreSQL
    • Migrating a database from a third-party PostgreSQL cluster to Managed Service for PostgreSQL
    • Migrating a database from Managed Service for PostgreSQL
    • Migrating a Managed Service for PostgreSQL cluster to a different version
    • Delivering data from Managed Service for PostgreSQL to Managed Service for Apache Kafka® using Data Transfer
    • Delivering data from Managed Service for PostgreSQL to Managed Service for Apache Kafka® using Debezium
    • Delivering data from Managed Service for PostgreSQL to Managed Service for YDB using Data Transfer
    • Migrating a database from Managed Service for PostgreSQL to Object Storage
    • Migrating data from Object Storage to Managed Service for PostgreSQL via Data Transfer
    • PostgreSQL change data capture and delivery to YDS
    • Migrating data from Managed Service for PostgreSQL to Managed Service for MySQL® using Data Transfer
    • Migrating data from Managed Service for PostgreSQL to Managed Service for OpenSearch using Data Transfer
    • Fixing string sorting issues in PostgreSQL after a glibc upgrade
    • Using a Yandex Lockbox secret in a PySpark job to connect to Yandex Managed Service for PostgreSQL
    • Configuring permissions for access to a secret created by Connection Manager for a Managed Service for PostgreSQL user
    • Executing analytical queries in Managed Service for PostgreSQL with processing in Managed Service for ClickHouse®
    • Migrating a database from Greenplum® to ClickHouse®
    • Migrating a database from Greenplum® to PostgreSQL
    • Exporting Greenplum® data to a cold storage in Object Storage
    • Loading data from Object Storage to Yandex MPP Analytics for PostgreSQL using Data Transfer
    • Copying data from Managed Service for OpenSearch to Yandex MPP Analytics for PostgreSQL using Yandex Data Transfer
    • Creating an external table from a Object Storage bucket table using a configuration file
    • Getting data from external sources using named queries in Greenplum®
    • Migrating a database from a third-party Valkey™ cluster to Yandex Managed Service for Valkey™
    • Using a Yandex Managed Service for Valkey™ cluster as a PHP session storage
    • Distributed locks for 1C:Enterprise in a Yandex Managed Service for Valkey™ cluster
    • Loading data from Object Storage to Managed Service for YDB using Data Transfer
    • Loading data from Managed Service for YDB to Object Storage using Data Transfer
    • Processing Audit Trails events
    • Processing Cloud Logging logs
    • Processing Debezium CDC streams
    • Analyzing data with Jupyter
    • Processing usage detail files in Yandex Cloud Billing
    • Ingesting data into storage systems
    • Smart log processing
    • Data transfer in microservice architectures
    • Migrating data to Object Storage using Data Transfer
    • Migrating data from a third-party Greenplum® or PostgreSQL cluster to Yandex MPP Analytics for PostgreSQL using Data Transfer
    • Migrating Yandex StoreDoc clusters
    • Migrating MySQL® clusters
    • Migrating to a third-party MySQL® cluster
    • Migrating PostgreSQL clusters
    • Creating a schema registry to deliver data in Debezium CDC format from Apache Kafka®
    • Executing analytical queries in Managed Service for PostgreSQL with processing in Managed Service for ClickHouse®
    • Automating operations using Yandex Managed Service for Apache Airflow™
    • Working with an Object Storage table from a PySpark job
    • Integrating Yandex Managed Service for Apache Spark™ with Apache Hive™ Metastore
    • Running a PySpark job using Yandex Managed Service for Apache Airflow™
    • Using Yandex Object Storage in Yandex Managed Service for Apache Spark™
    • Yandex Managed Service for Apache Spark™ integration with DataSphere
    • Using a Yandex Lockbox secret in a PySpark job to connect to Yandex Managed Service for PostgreSQL
    • Running a PySpark job in Yandex Managed Service for YTsaurus

In this article:

  • Getting started
  • Required paid resources
  • Set up your infrastructure
  • Deploy your HTTP lock server
  • Configure the 1C:Enterprise module
  • Test the locks
  • Delete the resources you created
  1. Building a data platform
  2. Distributed locks for 1C:Enterprise in a Yandex Managed Service for Valkey™ cluster

Distributed locks for 1C:Enterprise in a Yandex Managed Service for Valkey™ cluster

Written by
Yandex Cloud
Updated at October 6, 2026
View in Markdown
  • Getting started
    • Required paid resources
  • Set up your infrastructure
  • Deploy your HTTP lock server
  • Configure the 1C:Enterprise module
  • Test the locks
  • Delete the resources you created

You can use a Yandex Managed Service for Valkey™ cluster as a distributed lock storage for 1C:Enterprise, e.g., to prevent multiple users from editing the same catalog item at the same time.

Integration is implemented via an intermediate HTTP server running on a Yandex Compute Cloud virtual machine. The server provides an HTTP API for managing locks and uses a Valkey™ cluster as its backend. A 1C:Enterprise module accesses the API through an external connection.

Note

The module requires 1C:Enterprise 8.3 or later.

To set up locks:

  1. Set up your infrastructure.
  2. Deploy your HTTP lock server.
  3. Configure the 1C:Enterprise module.
  4. Test the locks.
  5. Delete the resources you created.

Getting startedGetting started

Sign up for Yandex Cloud and create a billing account:

  1. Navigate to the management console and log in to Yandex Cloud or create a new account.
  2. On the Yandex Cloud Billing page, make sure you have a billing account linked and it has the ACTIVE or TRIAL_ACTIVE status. If you do not have a billing account, create one and link a cloud to it.

If you have an active billing account, you can create or select a folder for your infrastructure on the cloud page.

Learn more about clouds and folders here.

Required paid resourcesRequired paid resources

  • Yandex Managed Service for Valkey™ cluster: the host's computing resources and storage size (see Yandex Managed Service for Valkey™ pricing).
  • VM instance: use of computing resources, storage, public IP address, and OS (see Compute Cloud pricing).

Set up your infrastructureSet up your infrastructure

Manually
Terraform
  1. Create a Yandex Managed Service for Valkey™ cluster with the following specifications:

    • Valkey version: 9.1.

    • Name: 1c-locks.

    • Use FQDN instead of IP addresses: Enabled.

    • Data persistence mode: On replicas.

      Warning

      Locks have a limited TTL. To prevent data loss, use a high-availability cluster configuration.

    • Enable WebSQL access.

  2. Create a VM for the HTTP lock server in the same network as the cluster.

  3. Configure security groups to allow:

    • The HTTP server to connect to the cluster.
    • The 1C:Enterprise server to access the HTTP server on the selected port.
  1. If you do not have Terraform yet, install it.

  2. Get the authentication credentials. You can add them to environment variables or specify them later in the provider configuration file.

  3. Configure and initialize a provider. Instead of manually creating the provider configuration file, you can download it.

  4. Place the configuration file in a separate working directory and specify the parameter values. If you have not added the authentication credentials to environment variables, specify them in the configuration file.

  5. Download the valkey-1c-http.tf configuration file to your current working directory.

    This file describes:

    • Network.
    • Subnet.
    • Security groups.
    • Yandex Managed Service for Valkey™ cluster.
    • Virtual machine with public internet access and a pre-installed HTTP server with all required dependencies.
  6. In valkey-1c-http.tf, specify the following:

    • Password to access the Yandex Managed Service for Valkey™ cluster.
    • HTTP lock server access port.
    • Lock key prefix in Valkey™.
  7. Validate your Terraform configuration using this command:

    terraform validate
    

    Terraform will display any configuration errors detected in your files.

  8. Create the required infrastructure:

    1. Run this command to view the intended changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

    All the required resources will be created in the specified folder. You can check resource availability and their settings in the management console.

After creating the resources, the terminal will display the following HTTP lock server settings:

  • vm_public_ip: Server public IP address.
  • http_url: Server connection endpoint.

Deploy your HTTP lock serverDeploy your HTTP lock server

An HTTP lock server is a thin layer between a 1C:Enterprise server and a Yandex Managed Service for Valkey™ cluster. It exposes endpoints with the lock prefix:

Endpoint Method Purpose
lock/acquire POST Acquire a lock
lock/release POST Release a lock
lock/renew POST Extend a lock
lock/status POST Get the status of a lock
lock/list GET Get a list of locks

How to work with your cluster:

  • To acquire a lock (lock/acquire), use the SET command with the NX argument and specify the key TTL (PX). The NX argument ensures the lock is only acquired when no such key exists, while the TTL prevents the lock from lasting indefinitely:

    SET <key> <token> NX PX <ttl_in_milliseconds>
    
  • To release (lock/release) or renew (lock/renew) a lock, use the EVAL command to call Lua scripts. These scripts perform the following operations in Valkey™ sequentially:

    1. Get lock data by key.
    2. Compare the lock token with the request token.
    3. Delete the key or renew the lock.

    Calling a script ensures transaction atomicity, meaning that either all operations complete successfully or none of them do. Below is an example of a script for releasing a lock:

    -- release: Delete the key only if the token matches.
    local value = server.call('GET', KEYS[1])
    if not value then
      return 0
    end
    local ok, lock = pcall(cjson.decode, value)
    if not ok or lock['token'] ~= ARGV[1] then
      return 0
    end
    return server.call('DEL', KEYS[1])
    
  • The server returns HTTP status codes and error messages showing whether it successfully acquired, released, or renewed the lock.

To deploy your server:

Manually
Terraform
  1. Connect to your virtual machine over SSH.

  2. Install Go 1.26.2 or higher.

  3. Clone the repository:

    git clone https://git@git.sourcecraft.dev/valkey/webinar-260624-1c-example.git && \
    cd webinar-260624-1c-example/http-lock-valkey
    
  4. Create environment variables with the server configuration:

    export HTTP_ADDR=:<server_port_exposed_for_requests>
    export VALKEY_ADDR=<Valkey™_host_FQDN>:6379
    export VALKEY_USER=default
    export VALKEY_PASSWORD=<Valkey™_password>
    export DEFAULT_LOCK_TTL=<lock_renewal_interval_in_seconds>
    export LOCK_KEY_PREFIX=<lock_key_prefix>
    
  5. Start the HTTP server with this command:

    go run .
    

The Terraform configuration file contains all commands required to deploy the HTTP server. Once the infrastructure is created, the server is ready to use.

  1. Update the server settings in the configuration file as needed:

    • The lock renewal interval in the DEFAULT_LOCK_TTL setting of the cloud_init local variable.
    • The lock key prefix in the lock_key_prefix local variable.
    • The server port for Valkey™ cluster requests in the http_port local variable.
  2. Make sure the settings are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  3. Confirm resource changes.

    1. Run this command to view the intended changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

After updating the resources, the terminal will display the updated HTTP lock server settings:

  • vm_public_ip: Server public IP address.
  • http_url: Server connection endpoint.

Configure the 1C:Enterprise moduleConfigure the 1C:Enterprise module

1C:Enterprise uses the Catalog lock module, which accesses the HTTP server through an external connection. The ready-to-use module code is in the container hosting the 1C:Enterprise test database in the valkey/webinar-260624-1c-example repository.

The module performs the following functions:

  • Sends HTTP requests to the server endpoints (lock/acquire, lock/release, lock/status, lock/renew, lock/list) depending on the action.
  • Generates a lock key from the full catalog path (collection metadata) and the item ID. This ensures a unique lock for each catalog item.
  • In the module form, you can configure event handlers for catalogs:
    • On opening: Attempt to acquire the lock.
    • On modification and closing: Renew or release the lock.
  • To prevent the lock from expiring while the user is working with the form, configure periodic lock renewal.
  • For clarity, the form displays lock information: its status (acquired or available), the remaining TTL, and the token used to verify lock ownership.

To configure the module:

  1. Connect the database from the 1CExample repository directory and copy the CatalogLocks common module to your 1C:Enterprise configuration.

  2. If methods are called from server form code, make sure server calls are enabled for the module.

  3. In the HTTPRequest() function, specify the HTTP lock server address:

    Connection = New HTTPConnection("<new_VM_public_IP_address>", <port_from_HTTP_ADDR_variable>);
    
  4. Add the lock to the appropriate form. Follow these steps:

    • Add form attributes for the token and status.
    • When opening the form, call LockCatalog().
    • When closing the form, call UnlockCatalog().
    • Enable periodic renew sending.
  5. Connect the form event handlers to the appropriate catalogs. Here is a minimum functionality example:

    OnCreatingOnServer:
        acquire
    
    OnOpening:
        renew
    
    OnClosing:
        release
    
  6. Set up a lock key. By default, the key is generated as follows:

    "Catalog." + Reference.Metadata().Name + ":" + Reference.UniqueID()
    

    For documents, you can use the same approach:

    Document.CustomerOrder:UniqueID()
    

    If you need to use one module for different object types, generalize the LockKey() function.

Warning

The module connection settings may vary depending on the 1C:Enterprise implementation.

Test the locksTest the locks

  1. Open 1C:Enterprise and go to a catalog, such as Customers.

  2. Open an item, such as Roman, for editing. The form will display the lock status as acquired, along with the lock TTL and token.

  3. Monitor the TTL for a while: it should decrease over time, e.g., from 41 to 31 seconds. When the renewal interval expires (30 seconds by default), 1C:Enterprise automatically renews the lock.

  4. Make sure the lock appears in the cluster:

    Management console
    SQL
    1. Open Yandex WebSQL Connections.
    2. Add a database connection for the Valkey™ server you created earlier. Specify 0 as the database name.
    3. Connect to the 0 database and find the the lock key row.

    Note

    Due to encoding limitations, WebSQL may display the key name incorrectly. To verify lock ownership, check whether the key exists and look at its value (token), rather than checking whether the key name is readable.

    Connect to the Yandex Managed Service for Valkey™ cluster and run this command:

    KEYS <lock_key_prefix>:*
    

    Valkey™ will return the lock key as a string.

Delete the resources you createdDelete the resources you created

To reduce resource usage, delete the resources you no longer need:

Manually
Using Terraform
  1. Delete the Yandex Managed Service for Valkey™ cluster.
  2. Delete the VM.
  1. In the terminal window, go to the directory containing the infrastructure plan.

    Warning

    Make sure the directory has no Terraform manifests with the resources you want to keep. Terraform deletes all resources that were created using the manifests in the current directory.

  2. Delete resources:

    1. Run this command:

      terraform destroy
      
    2. Confirm deleting the resources and wait for the operation to complete.

    All the resources described in the Terraform manifests will be deleted.

Was the article helpful?

Previous
Using a Yandex Managed Service for Valkey™ cluster as a PHP session storage
Next
Loading data from Object Storage to Managed Service for YDB using Data Transfer
© 2026 Direct Cursus Technology L.L.C.