diff --git a/variables.tf b/variables.tf index 1ac7515d..99abcbd4 100644 --- a/variables.tf +++ b/variables.tf @@ -500,8 +500,8 @@ variable "netapp_size_in_tb" { default = 4 validation { - condition = var.netapp_size_in_tb != null ? var.netapp_size_in_tb >= 4 && var.netapp_size_in_tb <= 500 : null - error_message = "ERROR: netapp_size_in_tb - value must be between 4 and 500." + condition = var.netapp_size_in_tb != null ? var.netapp_network_features == "Basic" ? var.netapp_size_in_tb >= 4 && var.netapp_size_in_tb <= 500 : var.netapp_size_in_tb >= 1 && var.netapp_size_in_tb <= 500 : null + error_message = "ERROR: netapp_size_in_tb - For 'Basic' netapp_network_features, value must be between 4 and 500, for 'Standard' netapp_network_features, value must be between 1 and 500." } }