Skip to content

Commit

Permalink
Merge pull request #174 from Azure/nachoalonsoportillo/name-validatio…
Browse files Browse the repository at this point in the history
…n-purview

Fix defect in validation rule of Purview module
  • Loading branch information
jdocampo committed Feb 23, 2023
2 parents ea9fdfb + 0597506 commit f9c082e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/purview/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ variable "basename" {
type = string
description = "Basename of the module."
validation {
condition = can(regex("^[-0-9a-zA-Z]{1,57}", var.basename)) && can(regex("[0-9a-zA-Z]+$", var.basename)) && !can(regex("[--]", var.basename))
condition = can(regex("^[-0-9a-zA-Z]{1,57}", var.basename)) && can(regex("[0-9a-zA-Z]+$", var.basename)) && !can(regex("[-]{2,}", var.basename))
error_message = "The name must be between 1 and 57 characters and can contain only letters, numbers and hyphens. The last character must be a letter or number. The hyphen character must be immediately preceded and followed by a letter or number. Spaces are not allowed."
}
}
Expand Down Expand Up @@ -61,4 +61,4 @@ variable "private_dns_zone_ids_portal" {
type = list(string)
description = "Specifies the list of Private DNS Zones to include."
default = []
}
}

0 comments on commit f9c082e

Please sign in to comment.