Version bump, Style guide, dns records updates optional, and input validation
This commit is contained in:
+8
-2
@@ -1,4 +1,10 @@
|
||||
variable "type" {
|
||||
default = "g6-nanode-1"
|
||||
type = string
|
||||
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)."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user