Expose a few more configurable items and add input validators

This commit is contained in:
2026-08-12 20:27:42 -05:00
parent 66d4f2b775
commit 4ee9d1efdc
10 changed files with 49 additions and 15 deletions
+5 -2
View File
@@ -1,6 +1,9 @@
variable "region" {
description = "The region where the droplet will be created"
default = "nyc3"
type = string
}
validation {
condition = can(regex("^[a-z]{3}[0-9]$", var.region))
error_message = "The region must be a valid DigitalOcean region format (e.g., nyc3, sfo3)."
}
}