From ba9cb6dbd359954e22223c18a99407c33ca54ae0 Mon Sep 17 00:00:00 2001 From: Stephen Kirby Date: Thu, 5 Oct 2023 21:52:39 +0000 Subject: [PATCH] attempting ends with --- filebrowser/main.tf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/filebrowser/main.tf b/filebrowser/main.tf index ef653bf..d118318 100644 --- a/filebrowser/main.tf +++ b/filebrowser/main.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.0" + required_version = ">= 1.3" required_providers { coder = { @@ -20,7 +20,8 @@ variable "database_path" { description = "The path to the filebrowser database." default = "filebrowser.db" validation { - condition = can(regex(".*filebrowser\\.db$", var.database_path)) + condition = endswith(var.database_path, "filebrowser.db") + # condition = can(regex(".*filebrowser\\.db$", var.database_path)) error_message = "The database_path must end with 'filebrowser.db'." } }