Updating an instance group based on a YAML specification
To update an instance group based on a YAML specification:
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.
Run the command below, specifying the instance group name or ID and the YAML specification file path:
yc compute instance-group update <instance_group_name_or_ID> --file specification.yaml
For more information about the yc compute instance-group update command, see the CLI reference.
Use the updateFromYaml REST API method for the InstanceGroup resource or the InstanceGroupService/UpdateFromYaml gRPC API call.
To request a list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.