Skip to content

Commit

Permalink
feat: add validation to availability_zone_count (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
morremeyer authored Dec 15, 2021
1 parent 195e519 commit c04e16c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ variable "availability_zone_count" {
type = number
default = 2
description = "Number of Availability Zones for the domain to use."

validation {
condition = contains([2, 3], var.availability_zone_count)
error_message = "The availibility zone count must be 2 or 3."
}
}

variable "ebs_volume_size" {
Expand Down Expand Up @@ -357,4 +362,4 @@ variable "custom_endpoint_certificate_arn" {
type = string
description = "ACM certificate ARN for custom endpoint."
default = ""
}
}

0 comments on commit c04e16c

Please sign in to comment.