Skip to content

Commit

Permalink
Validation and type constraint checks
Browse files Browse the repository at this point in the history
Signed-off-by: Elayaraja Dhanapal <eldhanap@in.ibm.com>
  • Loading branch information
elayarajadhanapal authored and Elayaraja-Dhanapal committed Dec 8, 2020
1 parent d4d16f8 commit 0ae20b2
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 0ae20b2

Please sign in to comment.