INVALID_ARGUMENT | name is required | Provide a name field. |
INVALID_ARGUMENT | name must match [a-z][a-z0-9-]{0,62} | Use a lowercase DNS label for the name. |
INVALID_ARGUMENT | description exceeds 1024 byte limit | Shorten the description to 1024 bytes or fewer. |
INVALID_ARGUMENT | vcpus must be positive | Set vcpus to a value greater than 0. |
INVALID_ARGUMENT | memory_gb must be positive | Set memory_gb to a value greater than 0. |
INVALID_ARGUMENT | architecture is required | Set architecture to ARCHITECTURE_AMD64 or ARCHITECTURE_ARM64. |
INVALID_ARGUMENT | unknown architecture value <N> | Use a valid architecture value. |
INVALID_ARGUMENT | gpu_kind is required when has_gpu is true | Provide gpu_kind when has_gpu is true. |
INVALID_ARGUMENT | gpu_kind must be empty when has_gpu is false | Remove gpu_kind, or set has_gpu to true on a machine type that includes GPUs. |
INVALID_ARGUMENT | spec is required (aws, gce, or docker) | Provide exactly one of spec.aws, spec.gce, or spec.docker. |
INVALID_ARGUMENT | aws.instance_type "<value>" does not match EC2 format | Use a valid EC2 instance type string (e.g. m5.8xlarge). |
INVALID_ARGUMENT | gce.machine_type "<value>" does not match GCE format | Use a valid GCE machine type string (e.g. n2-standard-32). |
INVALID_ARGUMENT | gce.accelerator_type and gce.accelerator_count must be unset: separately attached accelerators are not yet supported on GCE. Use an accelerator-optimized machine type, which includes its GPUs | Remove spec.gce.accelerator_type and spec.gce.accelerator_count, and name an accelerator-optimized machine_type such as a2-highgpu-1g — see GPU support. |
INVALID_ARGUMENT | has_gpu requires an accelerator-optimized gce.machine_type (a2, a3, a4, a4x, g2, g4 series); "<value>" includes no GPU | Name an accelerator-optimized spec.gce.machine_type, or remove has_gpu and gpu_kind — see GPU support. |
INVALID_ARGUMENT | gce.machine_type "<value>" includes GPUs: set has_gpu and gpu_kind to describe them | Set has_gpu: true and gpu_kind on the machine type, so it describes the GPUs its VMs get. |
INVALID_ARGUMENT | aws.regions must be non-empty | Add at least one region to spec.aws.regions. |
INVALID_ARGUMENT | gce.regions must be non-empty | Add at least one region to spec.gce.regions. |
INVALID_ARGUMENT | aws.regions["<region>"].cost_per_hour must be > 0 | Set cost_per_hour to a positive value for the given region. |
INVALID_ARGUMENT | gce.regions["<region>"].cost_per_hour must be > 0 | Set cost_per_hour to a positive value for the given region. |
INVALID_ARGUMENT | docker machine types cannot request GPU | Remove has_gpu and gpu_kind, or use a GCE or AWS spec with a GPU-inclusive machine type — see GPU support. |
INVALID_ARGUMENT | platform machine types are reserved for builtins and cannot be written via the catalog | Do not set the platform field. Built-in machine types are managed by the platform. |
FAILED_PRECONDITION | cannot delete machine-type "<name>": referenced by environment: <names> | Remove the machine_type_ref from the referencing environments before deleting the machine type. |