Skip to content

Commit

Permalink
fix: invalid reference in variable validation
Browse files Browse the repository at this point in the history
  • Loading branch information
saumitra-dev committed Jul 11, 2024
1 parent 3a54e0b commit 89fa3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ variable "cluster_arn" {
default = null

validation {
condition = var.create_cluster == true || startswith(var.cluster_arn != null ? var.cluster_arn : "", "arn:")
condition = var.cluster_arn == null || startswith(var.cluster_arn != null ? var.cluster_arn : "", "arn:")
error_message = "Specified Cluster ARN must be a valid ARN starting with \"arn:\"."
}
}
Expand Down

0 comments on commit 89fa3e1

Please sign in to comment.