Skip to content

Commit 89fa3e1

Browse files
committed
fix: invalid reference in variable validation
1 parent 3a54e0b commit 89fa3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ variable "cluster_arn" {
3535
default = null
3636

3737
validation {
38-
condition = var.create_cluster == true || startswith(var.cluster_arn != null ? var.cluster_arn : "", "arn:")
38+
condition = var.cluster_arn == null || startswith(var.cluster_arn != null ? var.cluster_arn : "", "arn:")
3939
error_message = "Specified Cluster ARN must be a valid ARN starting with \"arn:\"."
4040
}
4141
}

0 commit comments

Comments
 (0)