11 lines
318 B
Terraform
11 lines
318 B
Terraform
variable "image" {
|
|
default = "linode/fedora44"
|
|
description = "An Image ID to deploy the Disk from."
|
|
type = string
|
|
|
|
validation {
|
|
condition = can(regex("^[a-zA-Z0-9-]+/[a-zA-Z0-9.-]+$", var.image))
|
|
error_message = "The image must be a valid Linode image ID (e.g., linode/fedora44)."
|
|
}
|
|
}
|