spot

Spot VMs

Compute & WebGCP
General

General information about the service.

Description

Google Cloud Spot VMs are highly affordable compute instances suitable for fault-tolerant batch jobs and workloads.

Service ID

compute.googleapis.com

Resource Pattern

projects/{project}/zones/{zone}/instances/{instance}

Chat

Powered by AI

Talk to this service to learn more about it.

Suggested questions:

Naming

The conventions, rules, and restrictions for naming this service.

Naming Convention

spot-{workload}-{environment}

Length

1-63

Valid Characters

Lowercase letters, numbers, hyphens

Scope

project

Code

Deploy your infrastructure as code using your preferred tooling.

Official DocumentationTerraform
terraform
1resource "google_compute_instance" "spot" {
2 name = "spot-${var.environment}"
3 machine_type = "e2-medium"
4 zone = var.zone
5
6 scheduling {
7 preemptible = true
8 automatic_restart = false
9 provisioning_model = "SPOT"
10 instance_termination_action = "STOP"
11 }
12
13 boot_disk {
14 initialize_params {
15 image = "debian-cloud/debian-11"
16 }
17 }
18
19 network_interface {
20 network = "default"
21 }
22}
Utilities

Utilities to support app deployment or configuration.