Skip to content

Commit

Permalink
Copy validation to exports/context.tf (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuru authored Feb 4, 2021
1 parent 3a7014c commit dc69999
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exports/context.tf
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,15 @@ variable "id_length_limit" {
type = number
default = null
description = <<-EOT
Limit `id` to this many characters.
Limit `id` to this many characters (minimum 6).
Set to `0` for unlimited length.
Set to `null` for default, which is `0`.
Does not affect `id_full`.
EOT
validation {
condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0
error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length."
}
}

variable "label_key_case" {
Expand Down

0 comments on commit dc69999

Please sign in to comment.