From 7cc15ef22e3b0363762bb309da0c11a449934231 Mon Sep 17 00:00:00 2001 From: Naftuli Kay Date: Mon, 22 Apr 2024 10:13:23 -0700 Subject: [PATCH] fix validations --- variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variables.tf b/variables.tf index 32f89c2..07271c3 100644 --- a/variables.tf +++ b/variables.tf @@ -46,12 +46,12 @@ variable url { EOF validation { - condition = length(regex('^(?:https[:][/]{2})?(?:[^:/]+)([/].*)$', var.url)) > 0 + condition = length(regex("^(?:https[:][/]{2})?(?:[^:/]+)([/].*)$", var.url)) > 0 error_message = "var.uri should not end with or contain a trailing slash/HTTP path" } validation { - condition = !startswith('https://', var.url) + condition = startswith("https://", var.url) == false error_message = "var.uri should start with 'https://'" }