11 lines
362 B
Terraform
11 lines
362 B
Terraform
variable "type" {
|
|
default = "g6-nanode-1"
|
|
description = "The Linode type defines the pricing, CPU, disk, and RAM specs of the instance."
|
|
type = string
|
|
|
|
validation {
|
|
condition = can(regex("^g[0-9]+-[a-zA-Z0-9-]+$", var.type))
|
|
error_message = "The type must be a valid Linode instance type (e.g., g6-nanode-1, g6-standard-2)."
|
|
}
|
|
}
|