We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a7014c commit dc69999Copy full SHA for dc69999
exports/context.tf
@@ -159,11 +159,15 @@ variable "id_length_limit" {
159
type = number
160
default = null
161
description = <<-EOT
162
- Limit `id` to this many characters.
+ Limit `id` to this many characters (minimum 6).
163
Set to `0` for unlimited length.
164
Set to `null` for default, which is `0`.
165
Does not affect `id_full`.
166
EOT
167
+ validation {
168
+ condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0
169
+ error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length."
170
+ }
171
}
172
173
variable "label_key_case" {
0 commit comments