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" } }