Description
Describe the Bug
The README says
NOTE: To enable zone awareness to deploy Elasticsearch nodes into two different Availability Zones, you need to set zone_awareness_enabled to true and provide two different subnets in subnet_ids. If you enable zone awareness for your domain, Amazon ES places an endpoint into two subnets. The subnets must be in different Availability Zones in the same region. If you don't enable zone awareness, Amazon ES places an endpoint into only one subnet. You also need to set availability_zone_count to 1.
When I set the value of availability_zone_count to 1 I get an error because in the latest release you didn't correct variables.tf, namely you didn't comment out validation in availability_zone_count
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."
}**
}
Expected Behavior
When setting availability_zone_count = 1, I shouldn't get an error
var.availability_zone_count is 1
The availability zone count must be 2 or 3.
Steps to Reproduce
set variable
availability_zone_count = 1
Screenshots
No response
Environment
No response
Additional Context
No response