From c268547bd8a982506535fcea3fac67013a4b774d Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Sun, 26 May 2024 22:23:10 +0200 Subject: [PATCH] fix: variable validation using old names --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 65d9375..89cc6a1 100644 --- a/variables.tf +++ b/variables.tf @@ -2,7 +2,7 @@ variable "name" { type = string description = "The name of the tenant you want to create" validation { - condition = can(regex("^[-a-zA-Z0-9_]*$", var.tenant_name)) + condition = can(regex("^[-a-zA-Z0-9_]*$", var.name)) error_message = "The tenant name must only contain alphanumeric characters, dashes, and underscores." } }