variable "host_name" { description = "The hostname for the droplet" type = string validation { condition = can(regex("^[a-zA-Z0-9-]+$", var.host_name)) error_message = "The host name can only contain alphanumeric characters and hyphens." } }