Remove preemptible VMs in favor of spot VMs
This commit is contained in:
@@ -189,19 +189,13 @@ variable "options" {
|
||||
type = object({
|
||||
allow_stopping_for_update = bool
|
||||
deletion_protection = bool
|
||||
preemptible = bool
|
||||
spot = bool
|
||||
})
|
||||
default = {
|
||||
allow_stopping_for_update = true
|
||||
deletion_protection = false
|
||||
preemptible = false
|
||||
spot = false
|
||||
}
|
||||
validation {
|
||||
condition = !var.options.spot || (var.options.spot && var.options.preemptible)
|
||||
error_message = "Variable var.option.preemptible must be `true` when var.options.spot is set to `true`."
|
||||
}
|
||||
}
|
||||
|
||||
variable "project_id" {
|
||||
|
||||
Reference in New Issue
Block a user