From 449fdb348fa1551befdbffb7a906759894864cea Mon Sep 17 00:00:00 2001 From: Brett Curtis Date: Sat, 2 Nov 2024 18:59:23 -0400 Subject: [PATCH] Code review feedback --- variables.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/variables.tf b/variables.tf index 40528ff..c16e79b 100644 --- a/variables.tf +++ b/variables.tf @@ -26,8 +26,8 @@ variable "repository" { type = string validation { - condition = can(regex("[a-z0-9-]+$", var.repository)) - error_message = "The repository name should contain only lowercase alphanumeric characters or hyphens" + condition = can(regex("^[a-z0-9-]+$", var.repository)) + error_message = "The repository name must consist entirely of lowercase alphanumeric characters or hyphens" } }