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.comResource Pattern
projects/{project}/zones/{zone}/instances/{instance}References
Chat
Powered by AITalk 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 Documentation
terraform
1resource "google_compute_instance" "spot" {2 name = "spot-${var.environment}"3 machine_type = "e2-medium"4 zone = var.zone56 scheduling {7 preemptible = true8 automatic_restart = false9 provisioning_model = "SPOT"10 instance_termination_action = "STOP"11 }1213 boot_disk {14 initialize_params {15 image = "debian-cloud/debian-11"16 }17 }1819 network_interface {20 network = "default"21 }22}
Utilities
Utilities to support app deployment or configuration.