Switch clouds

Written by
Updated at January 28, 2025
  1. In the management console, select the appropriate cloud or folder from the list on the left.

    image

There are two ways to choose the cloud that is used in the CLI by default:

  • Select a cloud when creating a profile.
  • Change the cloud-id parameter in the profile configuration.

To change the cloud-id parameter for the current profile:

  1. See the description of the command to change configuration parameters:

    yc config set --help
    
  2. Find out the ID of the cloud you want to use. To do this, get a list of available clouds:

    yc resource-manager cloud list
    +----------------------+----------------------+-------------------------------+
    |          ID          |         NAME         |          DESCRIPTION          |
    +----------------------+----------------------+-------------------------------+
    | b1gg8sgd16g7******** | cloud-b1gg8s******** | ...                           |
    | b1gjqgj3hhvj******** | cloud-b1gjqg******** | ...                           |
    +----------------------+----------------------+-------------------------------+
    

    Note

    If the list contains only one cloud, it means you don't have access to any other clouds. To access the cloud, ask the owner to add you to it.

  3. Specify the ID of the cloud to be used by default:

    yc config set cloud-id b1gjqgj3hhvj********
    

Currently, you cannot switch to another cloud using the API.