From 9fdf5164da68602e9ee39101ee678941582563f9 Mon Sep 17 00:00:00 2001 From: Lutz Finsterle Date: Sat, 14 Mar 2026 08:49:59 +0100 Subject: [PATCH] Next Bug Fix --- variables.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/variables.tf b/variables.tf index 44b8b73..60d7624 100644 --- a/variables.tf +++ b/variables.tf @@ -38,6 +38,11 @@ variable "environment" { variable "openresty_source_type" { description = "OpenResty config source: 'bind_mount', 'local_build', or 'git_clone'." type = string + + validation { + condition = contains(["bind_mount", "local_build", "git_clone"], var.openresty_source_type) + error_message = "openresty_source_type must be 'bind_mount', 'local_build', or 'git_clone'." + } } variable "openresty_image" {