diff --git a/variables.tf b/variables.tf index 18741a5..bc7894c 100644 --- a/variables.tf +++ b/variables.tf @@ -35,7 +35,7 @@ variable "role_description" { } variable "project_paths" { - description = "List of GitLab namesapce/project names authorized to assume the role." + description = "List of GitLab namespace/project names authorized to assume the role." type = list(string) default = [] @@ -44,9 +44,9 @@ variable "project_paths" { # namespace/project format used by GitLab. condition = length([ for path in var.project_paths : 1 - if length(regexall("project_path:[A-Za-z0-9_.-]+?/([A-Za-z0-9_.:/-]+|\\*)$", path)) > 0 + if length(regexall("project_path:[A-Za-z0-9_.-]+?/([A-Za-z0-9_.:?*/-]+|\\*)$", path)) > 0 ]) == length(var.project_paths) - error_message = "Projects must be specified in the "project_path:namespace/project" format." + error_message = "Projects must be specified in the \"project_path:namespace/project\" format." } }