diff --git a/solutions/fully-configurable/variables.tf b/solutions/fully-configurable/variables.tf index 6ceece70..acc4e9be 100644 --- a/solutions/fully-configurable/variables.tf +++ b/solutions/fully-configurable/variables.tf @@ -33,7 +33,7 @@ variable "prefix" { validation { # must not exceed 16 characters in length - condition = length(var.prefix) <= 16 + condition = var.prefix == null || var.prefix == "" ? true : length(var.prefix) <= 16 error_message = "Prefix must not exceed 16 characters." } }