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
    • 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 Resource Manager
  • Getting started
    • All guides
    • Managing labels
      • Creating a folder
      • Updating a folder
      • Deleting a folder
      • Setting up access rights
      • Getting the folder ID
      • Getting notifications from services in a folder
    • Viewing service resource operations
  • Access management
  • Pricing policy
  • Terraform reference
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Folder
  3. Updating a folder

Updating a folder

Written by
Yandex Cloud
Improved by
Danila N.
Updated at April 22, 2025

To update a folder name or description, use the management console, CLI, API, or Terraform.

Management console
CLI
Terraform
API
  1. On the management console home page, select the folder. This page displays folders for the selected cloud. You can switch to another cloud, if required.
  2. Click next to the folder and select Edit.
  3. Enter a new name and description for the folder.
  4. Click Save.

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

  1. View the description of the update folder command:

    yc resource-manager folder update --help
    
  2. If you know the folder ID or name, proceed to the next step. Otherwise, use one of these methods to get them:

    • Get a list of folders:

      yc resource-manager folder list
      

      Result:

      +----------------------+--------------------+--------+--------+-------------+
      |          ID          |        NAME        | LABELS | STATUS | DESCRIPTION |
      +----------------------+--------------------+--------+--------+-------------+
      | b1gppulhhm2a******** | yet-another-folder |        | ACTIVE |             |
      | b1gvmob95yys******** | default            |        | ACTIVE |             |
      +----------------------+--------------------+--------+--------+-------------+
      
      • If you know the ID of the resource that belongs to the required folder, you can get the folder ID from the information about that resource:
      yc <service_name> <service_category> get <resource_ID>
      

      Where:

      • <service_name>: Service name, e.g., compute.
      • <service_category>: Resource category, e.g., instance.
      • <resource_ID>: Resource ID.

      For example, the fhmp74bfis2a******** VM belongs to the b1gpvjd9ir42******** folder:

      yc compute instance get fhmp74bfis2a********
      

      Result:

      id: fhmp74bfis2a********
      folder_id: b1gpvjd9ia42********
      ...
      
  3. Change the folder parameters, e.g., name and description. You can specify the folder to update by its name or ID.

    yc resource-manager folder update default \
      --new-name myfolder \
      --description "this is my default-folder"
    

    The command will rename the default foulder to myfolder and update its description. The folder 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.

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

To edit the settings of a folder created with Terraform:

  1. Open the Terraform configuration file and edit the fragment with the folder description.

    Example folder description in a Terraform configuration
    ...
    resource "yandex_resourcemanager_folder" "folder1" {
      cloud_id    = "b1gia12lt1tp********"
      name        = "myfolder"
      description = "this is my default-folder"
    }
    ...
    

    For more information about the yandex_resourcemanager_folder resource parameters in Terraform, see the relevant provider documentation.

  2. Check the configuration using this command:

    terraform validate
    

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

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

    terraform plan
    

    The terminal will display a list of resources with parameters. No changes will be made at this step. If the configuration contains any errors, Terraform will point them out.

  4. Apply the configuration changes:

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

    You can check the folder update using the management console or this CLI command:

    yc resource-manager folder list-operations <folder_name_or_ID>
    

To update a folder, use the update REST API method for the Folder resource or the FolderService/Update gRPC API call.

Was the article helpful?

Previous
Creating a folder
Next
Deleting a folder
© 2025 Direct Cursus Technology L.L.C.