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 specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. You can specify a different folder 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.