Skip to content

Commit 12d47e4

Browse files
committed
namespace must start with a letter
1 parent 2c5d9f1 commit 12d47e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ variable "namespace" {
33
description = "Namespace for all resources, usually the organization or project name"
44
type = string
55
validation {
6-
condition = length(var.namespace) <= 12 && can(regex("^[a-z0-9-]+$", var.namespace))
7-
error_message = "Namespace must be lowercase alphanumeric and hyphens only, max 12 characters"
6+
condition = length(var.namespace) <= 12 && can(regex("^[a-z][a-z0-9-]+$", var.namespace))
7+
error_message = "Namespace must be lowercase alphanumeric and hyphens only, start with a letter, max 12 characters"
88
}
99
}
1010

0 commit comments

Comments
 (0)