Skip to content

Commit

Permalink
Merge pull request #133 from Elayaraja-Dhanapal/release-4.6-935
Browse files Browse the repository at this point in the history
validation and type check on variables #935
  • Loading branch information
ltccci committed Dec 9, 2020
2 parents d4d16f8 + 0ae20b2 commit 356634b
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 34 deletions.
9 changes: 8 additions & 1 deletion modules/1_prepare/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@
################################################################

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 356634b

Please sign in to comment.