From dc341a08c04381f4de427048636e6c077dc85ab7 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Mon, 9 Oct 2023 11:40:09 +0300 Subject: [PATCH] fix regex --- vault/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vault/main.tf b/vault/main.tf index 2872503..b511175 100644 --- a/vault/main.tf +++ b/vault/main.tf @@ -36,9 +36,9 @@ variable "vault_cli_version" { type = string description = "The version of Vault to install." default = "latest" - # validate the version is in the format 0.0.0 or latest + # validate the version is in the format x.y.z or latest validation { - condition = can(regex("^(latest|[0-9]+\\.[0-9]+\\.[0-9]+)$", var.vault_version)) + condition = can(regex("^(latest|[0-9]+\\.[0-9]+\\.[0-9]+)$", var.vault_cli_version)) error_message = "Vault version must be in the format 0.0.0 or latest" } }