Editing an instance group based on a YAML specification
To update an instance group based on the specification in YAML format:
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. 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 the list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.