Files
linode_instance/variable.region.tf
T

11 lines
331 B
Terraform

variable "region" {
default = "us-central"
description = "The region where the Linode will be located."
type = string
validation {
condition = can(regex("^[a-z]{2}-[a-z]+(-[a-z]+)?$", var.region))
error_message = "The region must be a valid Linode region format (e.g., us-central, ap-south)."
}
}