Skip to content

Commit

Permalink
latest code fix with word correction and condition check
Browse files Browse the repository at this point in the history
validation and type check on variables #935
  • Loading branch information
elayarajadhanapal committed Oct 30, 2020
1 parent a83625f commit a2d5bbf
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 4 deletions.
10 changes: 9 additions & 1 deletion modules/1_prepare/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,15 @@
################################################################

variable "cluster_domain" {}
variable "cluster_id" {}

variable "cluster_id" {
type = string
validation {
condition = length(var.cluster_id) <= 14
error_message = "Length cannot exceed 14 characters when combined with cluster_id_prefix."
}
}

variable "bastion" {}

variable "service_instance_id" {}
Expand Down
Loading

0 comments on commit a2d5bbf

Please sign in to comment.