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 installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
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.