added validation, fixed ref

This commit is contained in:
Stephen Kirby
2023-10-05 21:28:51 +00:00
parent 5a8b8763cb
commit d6e7363e39
2 changed files with 8 additions and 5 deletions

View File

@@ -18,7 +18,11 @@ variable "agent_id" {
variable "db_path" {
type = string
description = "The path to the filebrowser database."
default = ""
default = "filebrowser.db"
validation {
condition = ends_with(var.database_path, "filebrowser.db")
error_message = "The database_path must end with 'filebrowser.db'."
}
}
variable "log_path" {