Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions solutions/fully-configurable/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,18 @@ variable "prefix" {
}

validation {
# must not exceed 16 characters in length
condition = length(var.prefix) <= 16
error_message = "Prefix must not exceed 16 characters."
}
}


# must not exceed 16 characters in length


condition = var.prefix == null || var.prefix == "" ? true : length(var.prefix) <= 16


error_message = "Prefix must not exceed 16 characters."


}}

variable "name" {
type = string
Expand Down
17 changes: 12 additions & 5 deletions solutions/security-enforced/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,18 @@ variable "prefix" {
}

validation {
# must not exceed 16 characters in length
condition = length(var.prefix) <= 16
error_message = "Prefix must not exceed 16 characters."
}
}


# must not exceed 16 characters in length


condition = var.prefix == null || var.prefix == "" ? true : length(var.prefix) <= 16


error_message = "Prefix must not exceed 16 characters."


}}

variable "name" {
type = string
Expand Down