Skip to content

Commit e53db35

Browse files
committed
In terrraform 1.0 conditions can't access other variables.
1 parent c19de34 commit e53db35

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

variables.tf

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ variable "minimum_load_balancer_capacity" {
138138
description = "Minimum capacity for a load balancer. Only valid for Load Balancers of type `application` or `network`"
139139
type = number
140140
default = null
141-
validation {
142-
condition = var.minimum_load_balancer_capacity == null || contains(["application", "network"], var.load_balancer_type)
143-
error_message = "The minimum_load_balancer_capacity variable is only valid for load balancers of type 'application' or 'network'."
144-
}
145141
}
146142

147143
variable "name" {

0 commit comments

Comments
 (0)