Bug fix in env handling
This commit is contained in:
@@ -26,6 +26,11 @@ variable "environment" {
|
||||
description = "Deployment environment: 'prod' (persistent volumes) or 'dev' (ephemeral)."
|
||||
type = string
|
||||
default = "dev"
|
||||
|
||||
validation {
|
||||
condition = contains(["prod", "dev"], var.environment)
|
||||
error_message = "environment must be 'prod' or 'dev'."
|
||||
}
|
||||
}
|
||||
|
||||
# ─── OpenResty ────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user